Install JupyterHub in Conda Environment


How to Install JupyterHub in a Conda Environment?



The easiest way to run an instance of JupyterHub is to install it in your personal default Conda environment. Here is how to do it.

1. Make sure that Conda is installed on the local computer.

fyicenter$ conda --version 
  conda 4.10.3

2. Activate your personal default Conda environment, which is also called "base".

fyicenter$ conda activate 

(base) fyicenter$

3. Install JupyterHub in the activated Conda environment.

(base) fyicenter$ conda install -c conda-forge jupyterhub

Downloading and Extracting Packages
conda-4.10.3         | 3.1 MB    |
jupyterhub-base-1.4. | 1.9 MB    |
oauthlib-3.1.1       | 87 KB     |
nodejs-14.17.4       | 15.8 MB   |
jupyterhub-1.4.2     | 5 KB      |
ca-certificates-2021 | 136 KB    |
jupyter_telemetry-0. | 10 KB     |

3. Check JupyterHub version.

(base) fyicenter$ which jupyterhub 

(base) fyicenter$ jupyterhub --version 

4. Start JupyterHub in Conda "base" environment.

(base) fyicenter$ jupyterhub
[I JupyterHub app:] Running JupyterHub version 1.4.2
[I JupyterHub app:] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.4.2
[I JupyterHub app:] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.4.2
[I JupyterHub app:] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.4.2
[I JupyterHub app:] Writing cookie_secret to ~/jupyterhub_cookie_secret
[I JupyterHub proxy] Generating new CONFIGPROXY_AUTH_TOKEN
[W JupyterHub app] No admin users, admin interface will be unavailable.
[W JupyterHub app] Add any administrative users 
  to `c.Authenticator.admin_users` in config.
[I JupyterHub app] Not using allowed_users. 
  Any authenticated user will be allowed.
[I JupyterHub app] Initialized 0 spawners in 0.001 seconds
[W JupyterHub proxy:699] Running JupyterHub without SSL.  
  I hope there is SSL termination happening somewhere else...
[I JupyterHub proxy:703] Starting proxy @ http://:8000
[ConfigProxy] info: Proxying http://*:8000 to (no default)
[ConfigProxy] info: Proxy API at
[I JupyterHub app:] Hub API listening on
[ConfigProxy] info: 200 GET /api/routes 
[I JupyterHub proxy:347] Checking routes
[I JupyterHub proxy:432] Adding route for Hub: / =>
[ConfigProxy] info: 201 POST /api/routes/ 

[I JupyterHub app] JupyterHub is now running at http://:8000


Login to JupyterHub Web Interface

Installing and Running JupyterHub

Installing and Running JupyterHub

⇑⇑ Jupyter Tutorials

2021-09-09, 143👍, 0💬