blob: c773303a7faa335a2de39aee70acd28c13efb068 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
set -vxe
if [[ "${@}" == bash* ]]; then
exec "${@}"
fi
if [[ -n ${JUPYTER_API_TOKEN} ]]; then
exec jupyterhub-singleuser --ip=0.0.0.0 "${@}"
elif [[ -n ${JUPYTER_ENABLE_LAB} ]]; then
exec jupyter labhub --ip=0.0.0.0 "${@}"
else
exec jupyter notebook --ip=0.0.0.0 "${@}"
fi
|