File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
set -e
6
6
7
+ if [[ -n " ${JUPYTERHUB_API_TOKEN} " ]]; then
8
+ echo " WARNING: use start-singleuser.sh instead of start-notebook.sh to start a server associated with JupyterHub."
9
+ exec /usr/local/bin/start-singleuser.sh " $@ "
10
+ exit
11
+ fi
12
+
7
13
wrapper=" "
8
14
if [[ " ${RESTARTABLE} " == " yes" ]]; then
9
15
wrapper=" run-one-constantly"
10
16
fi
11
17
12
- if [[ -n " ${JUPYTERHUB_API_TOKEN} " ]]; then
13
- # launched by JupyterHub, use single-user entrypoint
14
- exec /usr/local/bin/start-singleuser.sh " $@ "
15
- elif [[ -n " ${JUPYTER_ENABLE_LAB} " ]]; then
16
- # shellcheck disable=SC1091
17
- . /usr/local/bin/start.sh ${wrapper} jupyter lab " $@ "
18
+ if [[ -n " ${JUPYTER_ENABLE_LAB} " ]]; then
19
+ # shellcheck disable=SC1091,SC2086
20
+ exec /usr/local/bin/start.sh ${wrapper} ${NOTEBOOK_ARGS} jupyter lab " $@ "
18
21
else
19
22
echo " WARN: Jupyter Notebook deprecation notice https://github.com/jupyter/docker-stacks#jupyter-notebook-deprecation-notice."
20
- # shellcheck disable=SC1091
21
- . /usr/local/bin/start.sh ${wrapper} jupyter notebook " $@ "
23
+ # shellcheck disable=SC1091,SC2086
24
+ exec /usr/local/bin/start.sh ${wrapper} ${NOTEBOOK_ARGS } jupyter notebook " $@ "
22
25
fi
You can’t perform that action at this time.
0 commit comments