1
0
This commit is contained in:
2025-08-14 18:01:18 +02:00
parent 92f33706d4
commit d372768dd7
3 changed files with 15 additions and 26 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -20,8 +20,10 @@ install_default() {
packages=(
base-devel
curl
gcc-fortran
git
pkgfile
python-pip
trash-cli
unzip
wl-clipboard
@@ -49,7 +51,6 @@ install_base() {
install_devel() {
packages+=(
gcc-fortran
go
nodejs
npm
@@ -59,12 +60,10 @@ install_devel() {
install_nvim() {
packages+=(
fd
neovim
python-cairosvg
python-pip
python-jupyter-client
# lua51
python-pynvim
fd
ripgrep
tree-sitter-cli
)
@@ -99,6 +98,14 @@ install_ide() {
packages+=(
code
quarto-cli-bin
python-jupyter
python-jupyter-client
python-matplotlib
python-plotly
python-cairosvg
python-pandas
r
julia
)
}