start-notebook.sh 324 B

123456789101112
  1. #!/bin/bash
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. set -e
  5. if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
  6. # launched by JupyterHub, use single-user entrypoint
  7. exec /usr/local/bin/start-singleuser.sh $*
  8. else
  9. . /usr/local/bin/start.sh jupyter notebook $*
  10. fi