Commit 05cf4903 authored by sfux's avatar sfux
Browse files

Merge branch 'extra-modules' into 'master'

Add option --extra-modules

See merge request sfux/Jupyter-on-Euler-or-Leonhard-Open!6
parents cbecabcc b4e0ff6f
......@@ -105,7 +105,7 @@ Optional arguments:
-w | --workdir WORKING_DIR Working directory for the jupyter notebook/lab
-W | --runtime RUN_TIME Run time limit for jupyter notebook/lab in hours and minutes HH:MM
Examlples:
Examples:
./start_jupyter_nb.sh -u sfux -n 4 -W 04:00 -m 2048 -w /cluster/scratch/sfux
......
......@@ -13,6 +13,8 @@
# Version : 1.0 #
# Change history : #
# #
# 19.07.2022 Add option --extra-modules #
# #
# 14.02.2022 Adding option -j for julia kernel to the script #
# #
# 14.02.2022 Bringing back bash and R kernels #
......@@ -102,6 +104,9 @@ JNB_JLAB=""
# julia kernels : FALSE -> no julia kernel; TRUE -> julia kernel
JNB_JKERNEL="FALSE"
# Extra cluster modules : no additional modules
JNB_EXTRA_MODULES=()
###############################################################################
# Usage instructions #
###############################################################################
......@@ -131,9 +136,10 @@ Optional arguments:
-s | --softwarestack SOFTWARE_STACK Software stack to be used (old, new)
-v | --version Display version of the script and exit
-w | --workdir WORKING_DIR Working directory for the jupyter notebook/lab
--extra-modules EXTRA_MODULES Load additional cluster modules before starting
-W | --runtime RUN_TIME Run time limit for jupyter notebook/lab in hours and minutes HH:MM
Examlples:
Examples:
./start_jupyter_nb.sh -u sfux -n 4 -W 04:00 -m 2048 -w /cluster/scratch/sfux
......@@ -240,6 +246,11 @@ do
shift
shift
;;
--extra-modules)
JNB_EXTRA_MODULES=( $2 )
shift
shift
;;
*)
echo -e "Warning: ignoring unknown option $1 \n"
shift
......@@ -378,6 +389,7 @@ case $JNB_SOFTWARE_STACK in
display_help
;;
esac
JNB_MODULE_COMMAND+=" ${JNB_EXTRA_MODULES[@]}"
# check if JNB_SSH_KEY_PATH is empty or contains a valid path
if [ -z "$JNB_SSH_KEY_PATH" ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment