1
0
Files
chezmoi/home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl
2025-08-14 01:08:13 +02:00

31 lines
728 B
Cheetah

#!{{ lookPath "bash" }}
# include lib
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
{{- if (ne .hasIDE false) }}
log "Finalize quarto install"
inf "Install tinytex"
if [[ $(command -v quarto) ]]; then
quarto install tinytex
fi
inf "Install python dependencies"
python3 -m pip install jupyter jupyterlab ipykernel matplotlib plotly pandas
inf "Install Jupyter kernels"
python3 -m 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 = FALSE)"
julia -e 'using Pkg; Pkg.add("IJulia")'
log "Quarto install complete"
{{- end }}