up
This commit is contained in:
@@ -17,8 +17,6 @@ plugins=(
|
||||
['opam']='https://github.com/asdf-community/asdf-opam.git'
|
||||
['ruby']='https://github.com/asdf-vm/asdf-ruby.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
|
||||
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..."
|
||||
opam init -n
|
||||
|
||||
|
||||
@@ -16,20 +16,12 @@ title="IDE's configuration"
|
||||
quarto install tinytex
|
||||
fi
|
||||
|
||||
inf "install python dependencies for Quarto"
|
||||
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)"
|
||||
python3 -Im ipykernel install --user --name python-local --display-name "Python (local)"
|
||||
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user