Package: jupyterhub-simx
[Technical Overview](#technical-overview)|[Installation](#installation)|[Configuration](#configuration)|[Docker](#docker)|[Contributing](#contributing)|[License](#license)|[Help and Resources](#help-and-resources)# [JupyterHub](https://github.com/jupyterhub/jupyterhub)[![PyPI](https://img.shields.io/pypi/v/jupyterhub.svg)](https://pypi.python.org/pypi/jupyterhub)
[![Documentation Status](https://readthedocs.org/projects/jupyterhub/badge/?version=latest)](https://jupyterhub.readthedocs.org/en/latest/?badge=latest)
[![Documentation Status](http://readthedocs.org/projects/jupyterhub/badge/?version=0.7.2)](https://jupyterhub.readthedocs.io/en/0.7.2/?badge=0.7.2)
[![Build Status](https://travis-ci.org/jupyterhub/jupyterhub.svg?branch=master)](https://travis-ci.org/jupyterhub/jupyterhub)
[![Circle CI](https://circleci.com/gh/jupyterhub/jupyterhub.svg?style=shield&circle-token=b5b65862eb2617b9a8d39e79340b0a6b816da8cc)](https://circleci.com/gh/jupyterhub/jupyterhub)
[![codecov.io](https://codecov.io/github/jupyterhub/jupyterhub/coverage.svg?branch=master)](https://codecov.io/github/jupyterhub/jupyterhub?branch=master)
[![Google Group](https://img.shields.io/badge/google-group-blue.svg)](https://groups.google.com/forum/#!forum/jupyter)With [JupyterHub](https://jupyterhub.readthedocs.io) you can create amulti-user Hubwhich spawns, manages, and proxies multiple instances of the
single-user [Jupyter notebook](https://jupyter-notebook.readthedocs.io)
server.[Project Jupyter](https://jupyter.org) 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.## Technical overviewThree main actors make up JupyterHub:multi-userHub(tornado process)configurable httpproxy(node-http-proxy)multiplesingle-user Jupyter notebook servers(Python/Jupyter/tornado)Basic principles for operation are:Hub launches a proxy.Proxy forwards all requests to Hub by default.Hub handles login, and spawns single-user servers on demand.Hub configures proxy to forward url prefixes to the single-user notebook
servers.JupyterHub also provides a
[REST API](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/jupyterhub/master/docs/rest-api.yml#/default)
for administration of the Hub and its users.## Installation### Check prerequisitesA Linux/Unix based system[Python](https://www.python.org/downloads/) 3.5 or greater[nodejs/npm](https://www.npmjs.com/)If you are using`conda`, the nodejs and npm dependencies will be installed for
you by conda.If you are using`pip`, install a recent version of
[nodejs/npm](https://docs.npmjs.com/getting-started/installing-node).
For example, install it on Linux (Debian/Ubuntu) using:` sudoapt-getinstall npmnodejs-legacy`Thenodejs-legacypackage installs thenodeexecutable and is currently
required for npm to work on Debian/Ubuntu.TLS certificate and key for HTTPS communicationDomain name### Install packages#### UsingcondaTo install JupyterHub along with its dependencies including nodejs/npm:`bash conda install-cconda-forgejupyterhub `If you plan to run notebook servers locally, install the Jupyter notebook
or JupyterLab:`bash conda install notebook conda install jupyterlab `#### UsingpipJupyterHub can be installed withpip, and the proxy withnpm:`bash npm install-gconfigurable-http-proxypython3-mpip install jupyterhub `If you plan to run notebook servers locally, you will need to install the
[Jupyter notebook](https://jupyter.readthedocs.io/en/latest/install.html)
package:python3 -m pip install –upgrade notebook### Run the Hub serverTo start the Hub server, run the command:jupyterhubVisithttps://localhost:8000in your browser, and sign in with your unix
PAM credentials.Note: To allow multiple users to sign into the server, you will need to
run thejupyterhubcommand as aprivileged user, such as root.
The [wiki](https://github.com/jupyterhub/jupyterhub/wiki/Using-sudo-to-run-JupyterHub-without-root-privileges)
describes how to run the server as aless privileged user, which requires
more configuration of the system.## ConfigurationThe [Getting Started](https://jupyterhub.readthedocs.io/en/latest/getting-started/index.html) section of the
documentation explains the common steps in setting up JupyterHub.The [JupyterHub tutorial](https://github.com/jupyterhub/jupyterhub-tutorial)
provides an in-depth video and sample configurations of JupyterHub.### Create a configuration fileTo generate a default config file with settings and descriptions:jupyterhub –generate-config### Start the HubTo start the Hub on a specific url and port10.0.1.2:443withhttps:jupyterhub –ip 10.0.1.2 –port 443 –ssl-key my_ssl.key –ssl-cert my_ssl.cert### AuthenticatorsAuthenticator                                                               | Description                                       |————————————————————————— | ————————————————- |PAMAuthenticator                                                            | Default, built-in authenticator                   |[OAuthenticator](https://github.com/jupyterhub/oauthenticator)              | OAuth + JupyterHub Authenticator = OAuthenticator |[ldapauthenticator](https://github.com/jupyterhub/ldapauthenticator)        | Simple LDAP Authenticator Plugin for JupyterHub   |[kdcAuthenticator](https://github.com/bloomberg/jupyterhub-kdcauthenticator)| Kerberos Authenticator Plugin for JupyterHub      |### SpawnersSpawner                                                        | Description                                                                |————————————————————– | ————————————————————————– |LocalProcessSpawner                                            | Default, built-in spawner starts single-user servers as local processes    |[dockerspawner](https://github.com/jupyterhub/dockerspawner)   | Spawn single-user servers in Docker containers                             |[kubespawner](https://github.com/jupyterhub/kubespawner)       | Kubernetes spawner for JupyterHub                                          |[sudospawner](https://github.com/jupyterhub/sudospawner)       | Spawn single-user servers without being root                               |[systemdspawner](https://github.com/jupyterhub/systemdspawner) | Spawn single-user notebook servers using systemd                           |[batchspawner](https://github.com/jupyterhub/batchspawner)     | Designed for clusters using batch scheduling software                      |[wrapspawner](https://github.com/jupyterhub/wrapspawner)       | WrapSpawner and ProfilesSpawner enabling runtime configuration of spawners |## DockerA starter [docker image for JupyterHub](https://hub.docker.com/r/jupyterhub/jupyterhub/)
gives a baseline deployment of JupyterHub using Docker.Important:Thisjupyterhub/jupyterhubimage contains only the Hub itself,
with no configuration. In general, one needs to make a derivative image, with
at least ajupyterhub_config.pysetting 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 jupyterhub/jupyterhub jupyterhubThis command will create a container namedjupyterhubthat you canstop and resumewithdocker stop/start.The Hub service will be listening on all interfaces at port 8000, which makes
this a good choice fortesting 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 sslby adding ssl options to your docker
configuration or by using a ssl enabled proxy.[Mounting volumes](https://docs.docker.com/engine/admin/volumes/volumes/) will
allow you tostore data outside the docker image (host system) so it will be persistent, even when you start
a new image.The commanddocker exec -it jupyterhub bashwill spawn a root shell in your docker
container. You canuse the root shell to create system users in the container.
These accounts will be used for authentication in JupyterHub’s default configuration.## ContributingIf you would like to contribute to the project, please read our
[contributor documentation](http://jupyter.readthedocs.io/en/latest/contributor/content-contributor.html)
and the [CONTRIBUTING.md](CONTRIBUTING.md). TheCONTRIBUTING.mdfile
explains how to set up a development installation, how to run the test suite,
and how to contribute to documentation.### A note about platform supportJupyterHub is supported on Linux/Unix based systems.JupyterHub officiallydoes notsupport 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)maybe accepted,
however. For Windows-based systems, we would recommend running JupyterHub in a
docker container or Linux VM.[Additional Reference:](http://www.tornadoweb.org/en/stable/#installation) Tornado’s documentation on Windows platform support## LicenseWe use a shared copyright model that enables all contributors to maintain the
copyright on their contributions.All code is licensed under the terms of the revised BSD license.## Help and resourcesWe encourage you to ask questions on the [Jupyter mailing list](https://groups.google.com/forum/#!forum/jupyter).
To participate in development discussions or get help, talk with us on
our JupyterHub [Gitter](https://gitter.im/jupyterhub/jupyterhub) channel.[Reporting Issues](https://github.com/jupyterhub/jupyterhub/issues)[JupyterHub tutorial](https://github.com/jupyterhub/jupyterhub-tutorial)[Documentation for JupyterHub](https://jupyterhub.readthedocs.io/en/latest/) | [PDF (latest)](https://media.readthedocs.org/pdf/jupyterhub/latest/jupyterhub.pdf) | [PDF (stable)](https://media.readthedocs.org/pdf/jupyterhub/stable/jupyterhub.pdf)[Documentation for JupyterHub’s REST API](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/jupyterhub/master/docs/rest-api.yml#/default)[Documentation for Project Jupyter](http://jupyter.readthedocs.io/en/latest/index.html) | [PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)[Project Jupyter website](https://jupyter.org)—[Technical Overview](#technical-overview)|[Installation](#installation)|[Configuration](#configuration)|[Docker](#docker)|[Contributing](#contributing)|[License](#license)|[Help and Resources](#help-and-resources)