up
This commit is contained in:
@@ -17,8 +17,6 @@ plugins=(
|
|||||||
['opam']='https://github.com/asdf-community/asdf-opam.git'
|
['opam']='https://github.com/asdf-community/asdf-opam.git'
|
||||||
['ruby']='https://github.com/asdf-vm/asdf-ruby.git'
|
['ruby']='https://github.com/asdf-vm/asdf-ruby.git'
|
||||||
['rust']='https://github.com/code-lever/asdf-rust.git'
|
['rust']='https://github.com/code-lever/asdf-rust.git'
|
||||||
['julia']='https://github.com/rkyleg/asdf-julia.git'
|
|
||||||
['r']='https://github.com/asdf-community/asdf-r.git'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -41,14 +39,6 @@ for plugin in ${!plugins[@]}; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! $(asdf plugin list | grep "^python$") ]]; then
|
|
||||||
inf "installing python..."
|
|
||||||
asdf plugin add python https://github.com/asdf-community/asdf-python.git
|
|
||||||
asdf install python latest:3.12
|
|
||||||
asdf set python latest:3.12
|
|
||||||
asdf reshim python
|
|
||||||
fi
|
|
||||||
|
|
||||||
inf "initializing opam..."
|
inf "initializing opam..."
|
||||||
opam init -n
|
opam init -n
|
||||||
|
|
||||||
|
|||||||
@@ -16,20 +16,12 @@ title="IDE's configuration"
|
|||||||
quarto install tinytex
|
quarto install tinytex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inf "install python dependencies for Quarto"
|
python3 -Im ipykernel install --user --name python-local --display-name "Python (local)"
|
||||||
python3 -Im pip install jupyter jupyterlab ipykernel matplotlib plotly pandas
|
|
||||||
|
|
||||||
asdf reshim python
|
|
||||||
|
|
||||||
inf "install and register Jupyter kernels"
|
|
||||||
JUPYTER_BIN="$(asdf which jupyter)"
|
|
||||||
|
|
||||||
python3 -Im ipykernel install --user --name python-asdf --display-name "Python (asdf)"
|
|
||||||
|
|
||||||
Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')" \
|
Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')" \
|
||||||
-e "Sys.setenv(JUPYTER=\"$JUPYTER_BIN\"); IRkernel::installspec(user = TRUE)"
|
-e "IRkernel::installspec(user = TRUE)"
|
||||||
|
|
||||||
julia -e "ENV[\"JUPYTER\"]=\"${JUPYTER_BIN}\"; using Pkg; Pkg.add(\"IJulia\"); Pkg.build(\"IJulia\")"
|
julia -e "using Pkg; Pkg.add(\"IJulia\"); Pkg.build(\"IJulia\")"
|
||||||
|
|
||||||
log "${title} done"
|
log "${title} done"
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,10 @@ install_default() {
|
|||||||
packages=(
|
packages=(
|
||||||
base-devel
|
base-devel
|
||||||
curl
|
curl
|
||||||
|
gcc-fortran
|
||||||
git
|
git
|
||||||
pkgfile
|
pkgfile
|
||||||
|
python-pip
|
||||||
trash-cli
|
trash-cli
|
||||||
unzip
|
unzip
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
@@ -49,7 +51,6 @@ install_base() {
|
|||||||
|
|
||||||
install_devel() {
|
install_devel() {
|
||||||
packages+=(
|
packages+=(
|
||||||
gcc-fortran
|
|
||||||
go
|
go
|
||||||
nodejs
|
nodejs
|
||||||
npm
|
npm
|
||||||
@@ -59,12 +60,10 @@ install_devel() {
|
|||||||
|
|
||||||
install_nvim() {
|
install_nvim() {
|
||||||
packages+=(
|
packages+=(
|
||||||
fd
|
|
||||||
neovim
|
neovim
|
||||||
python-cairosvg
|
# lua51
|
||||||
python-pip
|
|
||||||
python-jupyter-client
|
|
||||||
python-pynvim
|
python-pynvim
|
||||||
|
fd
|
||||||
ripgrep
|
ripgrep
|
||||||
tree-sitter-cli
|
tree-sitter-cli
|
||||||
)
|
)
|
||||||
@@ -99,6 +98,14 @@ install_ide() {
|
|||||||
packages+=(
|
packages+=(
|
||||||
code
|
code
|
||||||
quarto-cli-bin
|
quarto-cli-bin
|
||||||
|
python-jupyter
|
||||||
|
python-jupyter-client
|
||||||
|
python-matplotlib
|
||||||
|
python-plotly
|
||||||
|
python-cairosvg
|
||||||
|
python-pandas
|
||||||
|
r
|
||||||
|
julia
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user