File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,7 @@ if [[ ${WORKSPACE_FILE+x} ]]; then
4343 cp $WORKSPACE_FILE .
4444fi
4545
46- <%-
47- api = if context . auto_modules_app_jupyter . split ( '/' ) [ 1 ] . to_s > '4.0' || context . mode == "1"
48- 'lab'
49- else
50- 'tree'
51- end
52- -%>
53-
54- JUPYTER_API="<%= api %> "
46+ JUPYTER_API="<%= context . mode == "1" ? 'lab' : 'tree' %> "
5547
5648export JUPYTERLAB_WORKSPACES_DIR=$PWD
5749export jupyter_api="$JUPYTER_API"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- < %-
3- require ' pathname'
4-
5- subcommand = if context.auto_modules_app_jupyter.split(' /' )[1].to_s > ' 4.0' || context.mode == " 1"
6- ' lab'
7- else
8- ' notebook'
9- end
10- -%>
112
123echo " Starting main script..."
134echo " TTT - $( date) "
@@ -44,4 +35,4 @@ echo "TTT - $(date)"
4435
4536# Launch the Jupyter server
4637set -x
47- jupyter < %= subcommand %> --config=" ${CONFIG_FILE} "
38+ jupyter < %= context.mode == " 1 " ? ' lab ' : ' notebook ' %> --config=" ${CONFIG_FILE} "
You can’t perform that action at this time.
0 commit comments