From b792abdc5d38427152bb202bf30343a1fbd29da6 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 14 Aug 2025 12:12:45 +0200 Subject: [PATCH] up --- .../run_once_after_30-quarto-config.sh.tmpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl b/home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl index deb54a5..2ec11e2 100644 --- a/home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl +++ b/home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl @@ -20,13 +20,18 @@ title="IDE's configuration" python3 -Im pip install jupyter jupyterlab ipykernel matplotlib plotly pandas inf "install and register Jupyter kernels" + OLD_PATH="$PATH" + export PATH="$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH" + 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')" \ - -e "IRkernel::installspec(user = TRUE, jupyter='/home/jeff/.asdf/installs/python/3.12.11/bin/jupyter')" + -e "Sys.setenv(JUPYTER=\"${JUPYTER_BIN}\"); IRkernel::installspec(user = TRUE)" - julia -e 'ENV["JUPYTER"]="/home/jeff/.asdf/installs/python/3.12.11/bin/jupyter"; using Pkg; Pkg.add("IJulia"); Pkg.build("IJulia")' + julia -e 'ENV["JUPYTER"]="${JUPYTER_BIN}"; using Pkg; Pkg.add("IJulia"); Pkg.build("IJulia")' + export PATH="$OLD_PATH" log "${title} done" {{- end }}