Add Jupyterhub (#1686)

This commit is contained in:
ahkui
2018-07-13 11:35:46 +08:00
committed by Shao Yu-Lung (Allen)
parent 29483bab8c
commit dc234b9b28
11 changed files with 370 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
set -e
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
# launched by JupyterHub, use single-user entrypoint
exec /usr/local/bin/start-singleuser.sh $*
else
. /usr/local/bin/start.sh jupyter notebook $*
fi