Setup
- open docker
- execute https://opensource.ncsa.illinois.edu/bitbucket/projects/BD/repos/jupyter/browse/jupyterhub/jupyterhub.sh
JupyterHub is now running at http://127.0.0.1:8000/jupyter/
( install virtualenv)
install python libs in https://opensource.ncsa.illinois.edu/bitbucket/projects/BD/repos/jupyter/browse/jpost.py (flask & glob2)
export FLASK_APP=jpost.py
flask run
post to localhost:5000/jupyter
(flask quick start: http://flask.pocoo.org/docs/0.12/quickstart/)
bdfiddle | login API | custom API | jupyterhub | |
---|---|---|---|---|
URL | http://bd-jupyterhub.ncsa.illinois.edu:8000/jupyter/hub/login or | http://bd-jupyterhub.ncsa.illinois.edu:8889/jupyter | http://bd-jupyterhub.ncsa.illinois.edu:8000/jupyter/hub/login or | |
repo | https://opensource.ncsa.illinois.edu/bitbucket/projects/BD/repos/bdfiddle/browse bdfiddle/bdfiddle.php | http://jupyterhub.readthedocs.io/en/latest/_static/rest-api/index.html ( login API is contained by jupyterhub.) | https://opensource.ncsa.illinois.edu/bitbucket/projects/BD/repos/jupyter/browse | dockerhub |
how to start | MAMP or start as normal php project | on bd-jupyter.ncsa.illinois.edu sudo service jupyterhub on local update config file | run wit docker, start with script on bd-jupyterhub, so need to start this separately. | same as login API |
function |
|
|
| jupyterhub |
log |
NOTE
how to change a config of jupyterhub?
- update jupyterhub_config
- service jupyterhub stop: use "docker ps" you can find docker container is still running
- docker stop <main CONTAINER ID> : browser stops running.
- service jupyterhub start (don't use /home/ubuntu/start_jupyterhub.sh)
you cannot set ACCESS-CONTROL as '*', it is not working. https://github.com/jupyterhub/jupyterhub/issues/1087