Compare commits

...

2 Commits

Author SHA1 Message Date
saundersp
7244d265fa Jupyter lab ip is bound to 0.0.0.0 (fix Dockerfile) 2024-06-09 15:45:27 +02:00
saundersp
9a08c7b4c6 Add test if Rscript command is available 2024-06-09 15:44:48 +02:00

@ -54,7 +54,12 @@ case "$1" in
k|-k|kernel|--kernel)
enable_venv "$2"
mkdir -p "$R_LIBS_SITE"
Rscript -e 'install.packages("IRkernel",repos="http://cran.us.r-project.org");library(IRkernel);IRkernel::installspec()'
if command -v Rscript >> /dev/null; then
Rscript -e 'install.packages("IRkernel",repos="http://cran.r-project.org");library(IRkernel);IRkernel::installspec()'
else
echo "R isn't installed"
exit 1
fi
;;
c|-c|check|--check)
@ -75,7 +80,7 @@ case "$1" in
l|-l|launch|--launch)
enable_venv "$2"
if command -v jupyter >> /dev/null; then
exec jupyter lab --ServerApp.iopub_data_rate_limit 1e16
exec jupyter lab --ip 0.0.0.0 --ServerApp.iopub_data_rate_limit 1e16
else
echo "Jupyter lab isn't installed"
exit 1