JupyterHub and Carina

The Ultimate Learning Environment

JupyterHub Cargo on Carina Whale

Carolyn Van Slyck

RACKIN & STACKIN

Rackspace
Rackspace
Carina
Carina
OpenStack
OpenStack

Jupyter

Interactive online programming environment

Jupyter notebook screenshot

jupyter.org

Docker

  • Docker = Container Black Magic Voodoo
  • Docker Image = A packaged application
    • Minimal operating system, e.g. ubuntu
    • Source code
    • Dependencies
  • Docker Container = An instance of an image
docker run jupyter/notebook

Carina

Docker as a Service

Carina website screenshot

getcarina.com

How to Whale

Docker Docker Docker MUSHROOM!

howtowhale.com

Bring Your Own Compute

  • Workshops
  • Demos
  • Sharing Research

Origin Story

Tim Head
Tim Head
@BetaTim
Safia Abdalla
Safia Abdalla
@CaptainSafia

Under the Hood

Carina OAuth Jupyter Cargo on Carina Whale

Running JupyterHub on Carina

  1. Signup: getcarina.com
  2. Register: oauth.getcarina.com
  3. Install Plugin: pip install jupyterhub-carina
  4. Configure Plugin:

c = get_config()

# Required: Configure JupyterHub to authenticate against Carina
c.JupyterHub.authenticator_class = "jupyterhub_carina.CarinaAuthenticator"
c.CarinaAuthenticator.admin_users = ["{carina_username}"]
c.CarinaAuthenticator.oauth_callback_url =
	"https://{jupyterhub_domain}/jupyter/hub/oauth_callback"

# Required: Configure JupyterHub to spawn user servers on Carina
c.JupyterHub.hub_ip = "0.0.0.0"
c.JupyterHub.spawner_class = "jupyterhub_carina.CarinaSpawner"
c.CarinaSpawner.hub_ip_connect = "{jupyterhub_domain}"
black magic voodoo
+
free compute
+
Jupyter
=
FUN

Resources

Thank you

@carolynvs

http://carolynvanslyck.com/talk/carina/jupyterhub