With JupyterHub you can create a
multi-user Hub that spawns, manages, and proxies multiple instances of the
single-user Jupyter notebook
server.
Project Jupyter created JupyterHub to support many
users. The Hub can offer notebook servers to a class of students, a corporate
data science workgroup, a scientific research project, or a high-performance
computing group.
Visit http://localhost:8000 in your browser, and sign in with your system username and password.
Note: To allow multiple users to sign in to the server, you will need to
run the jupyterhub command as a privileged user, such as root.
The documentation
describes how to run the server as a less privileged user, which requires
more configuration of the system.
Configuration
The Getting Started section of the
documentation explains the common steps in setting up JupyterHub.
The JupyterHub tutorial
provides an in-depth video and sample configurations of JupyterHub.
Create a configuration file
To generate a default config file with settings and descriptions:
jupyterhub --generate-config
Start the Hub
To start the Hub on a specific url and port 10.0.1.2:443 with https:
Important: This quay.io/jupyterhub/jupyterhub image contains only the Hub itself,
with no configuration. In general, one needs to make a derivative image, with
at least a jupyterhub_config.py setting up an Authenticator and/or a Spawner.
To run the single-user servers, which may be on the same system as the Hub or
not, Jupyter Notebook version 4 or greater must be installed.
The JupyterHub docker image can be started with the following command:
docker run -p 8000:8000 -d --name jupyterhub quay.io/jupyterhub/jupyterhub jupyterhub
This command will create a container named jupyterhub that you can
stop and resume with docker stop/start.
The Hub service will be listening on all interfaces at port 8000, which makes
this a good choice for testing JupyterHub on your desktop or laptop.
If you want to run docker on a computer that has a public IP then you should
(as in MUST) secure it with ssl by adding ssl options to your docker
configuration or by using an ssl enabled proxy.
Mounting volumes will
allow you to store data outside the docker image (host system) so it will be persistent, even when you start
a new image.
The command docker exec -it jupyterhub bash will spawn a root shell in your docker
container. You can use the root shell to create system users in the container.
These accounts will be used for authentication in JupyterHub's default configuration.
Contributing
If you would like to contribute to the project, please read our
contributor documentation
and the CONTRIBUTING.md. The CONTRIBUTING.md file
explains how to set up a development installation, how to run the test suite,
and how to contribute to documentation.
JupyterHub is supported on Linux/Unix based systems.
JupyterHub officially does not support Windows. You may be able to use
JupyterHub on Windows if you use a Spawner and Authenticator that work on
Windows, but the JupyterHub defaults will not. Bugs reported on Windows will not
be accepted, and the test suite will not run on Windows. Small patches that fix
minor Windows compatibility issues (such as basic installation) may be accepted,
however. For Windows-based systems, we would recommend running JupyterHub in a
docker container or Linux VM.
jupyter-serverPythie’s Index: 86The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications.37.1M downloads/mo
notebookPythie’s Index: 84Jupyter Notebook - A web-based notebook environment for interactive computing30.8M downloads/mo
jupyterlab-serverPythie’s Index: 53A set of server components for JupyterLab and JupyterLab like applications.31.6M downloads/mo
jupyter-server-proxyPythie’s Index: 84A Jupyter server extension to run additional processes and proxy to them that comes bundled JupyterLab extension to launch pre-defined processes.683K downloads/mo