This repository has been archived by the owner. It is now read-only.
Provisioning a datalab with jupyterhub and tons of data science libraries for Python, R, and Scala
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

JupyterHub Vangrant+Ansible Deploy

This repository provides a reference deployment of JupyterHub, a multi-user Jupyter Notebook environment, on a single host using either Linux sudo processes or Docker using Vangrant and Ansible.

This setup provides a single-command way to startup start up a JupyterHub RHEL/CentOS machine. The only requirement is needed is vagrant. This setup heavily borrows from a number of ideas such as the JupyterHub deploy docker setup.

This repo contributes to what's already available in the following ways:

sudo spawner

JupyterHub single host sudo spawner deployment

docker spawner

JupyterHub single host sudo spawner deployment

How to run

from the repo root dir type: vagrant up

Default provisioning

The default provisioning runs docker image spawner, which allows the logged-in user to select a number of instances.

    - role: ansible-role-centos-jupyterhub
      jupyterhub_spawner: 'imagespawner'
        - 'natbusa/jupyterhub-scipy-lab'
        - 'natbusa/jupyterhub-datascience-lab'
        - 'natbusa/jupyterhub-tensorflow-lab'
        - 'natbusa/jupyterhub-all-spark-lab'
      generate_testusers: True
        - amy
        - joe
        - sue
        - bob

for more details about the JupyterHub ansible script, pleas refer to


On the host - check the system journal:
sudo journalctl -u jupyterhub

when running docker containers:
sudo docker logs <container-id>

list running and paused containers:
sudo docker ps -a