Beruflich Dokumente
Kultur Dokumente
OVERVIEW
PyData Carolinas
September 16, 2016
Carol Willing Twitter: @willingcarol
Project Jupyter at Cal Poly SLO GitHub: @willingc
http://bit.ly/jupyterhub-pdc
1
2
UNDERSTANDING JUPYTERHUB
IN 1,000 (AND MAYBE A FEW MORE) COMMON WORDS
https://xkcd.com/simplewriter/
3
THE
NOBLEST PLEASURE IS
THE JOY OF
UNDERSTANDING.
Leonardo da Vinci
4
UNDERSTANDING JUPYTERHUB
LEONARDO MEETS THING EXPLAINER
what this talk is A user friendly JupyterHub introduction
5
BASICS
6
A WAY TO GIVE A
JUPYTER NOTEBOOK
HUB
SERVER TO EACH
PERSON IN A GROUP
OF PEOPLE.
7
WHAT IS A NOTEBOOK?
Document
Environment
Web app
https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
8
JUPYTER NOTEBOOK
View and Enter
Stuff Part
Important Stuff
Organizer and
Doing Thing
Julia
R
Language Expert Thing
Python
9
A SINGLE USER JUPYTER NOTEBOOK SERVER
Julia
R
Python
10
A THING TO GIVE A
JUPYTER NOTEBOOK
SERVER HUB
TO EACH PERSON IN
A GROUP OF PEOPLE.
11
HOW IT WORKS
12
WHAT DOES THE HUB DO?
Manages
authentication
Spawns single-user
notebook servers
on-demand
13
THE PARTS OF JUPYTERHUB
Hub (User Database,
Authenticator,
Spawner)
Configurable HTTP
Proxy
14
WHAT THE HUB CONTAINS
USER DATABASE
A PLACE TO KEEP
INFORMATION ABOUT PEOPLE
USING JUPYTERHUB
15
WHAT THE HUB CONTAINS
AUTHENTICATOR
16
WHAT THE HUB CONTAINS
SPAWNER
Human 4 Human 6
/hub/ Human 1s
Notebook
Server
/user/human4/
Human 2
Human 3
Human 4
/api/auth
HUB
Human 5
Human 6
18
WHEN SHOULD
I USE IT?
19
When to use JupyterHub
A class where students can do homework (nbgrader)
20
When not to use JupyterHub
Remember: JupyterHub is Authenticated and Persistent.
21
RESOURCES
AND HELP
22
Reference Deployments
https://github.com/jupyterhub/jupyterhub-deploy-docker
docker-compose, DockerSpawner, Hub in Docker
https://github.com/jupyterhub/jupyterhub-deploy-teaching
ansible, no docker, nbgrader
23
Tutorial and Workshop
JupyterHub tutorial
based on PyData London talk by Min Ragan-Kelley
https://github.com/jupyterhub/jupyterhub-tutorial
JupyterHub mini-workshop
July 2016
https://github.com/jupyterhub/jupyterhub-2016-workshop
24
Help
JupyterHub Documentation
http://jupyterhub.readthedocs.io/en/latest/index.html
25
HUB
THANKS!
http://bit.ly/jupyterhub-pdc
Carol Willing
Project Jupyter at Cal Poly SLO
A THING TO GIVE EACH PERSON
Twitter: @willingcarol THEIR OWN SHINY JUPYTER
GitHub: @willingc NOTEBOOK SERVER
26
Attribution
xkcd https://xkcd.com/license.html
https://xkcd.com/simplewriter/
https://xkcd.com/386/
PyData London Talk by Min Ragan-Kelley, Thomas Kluyver, and Kyle Kelly
27
JUPYTERLAB
PREVIEW
Repo: https://github.com/jupyter/jupyterlab
Preview GIF
https://raw.githubusercontent.com/jupyter/jupyterlab/master/jupyter-plugins-demo.gif
Install (conda):
conda install -c conda-forge jupyterlab
Install (pip):
pip install jupyterlab
jupyter serverextension enable --py jupyterlab --sys-prefix
Run:
jupyter lab
28