RTX 3050 - Order Now
Home / Blog / Tutorials / Self-Host JupyterHub on a Dedicated GPU
Tutorials

Self-Host JupyterHub on a Dedicated GPU

JupyterHub gives every team member their own Jupyter notebook on a shared GPU server. The right setup for data science teams.

For a small data science team sharing a dedicated GPU server, JupyterHub is the right pattern. Each user gets their own Jupyter environment, authentication is centralised, and GPU access is managed.

Contents

Install

sudo apt install python3-pip nodejs npm
sudo npm install -g configurable-http-proxy
sudo pip install jupyterhub notebook

Generate config:

jupyterhub --generate-config
sudo mv jupyterhub_config.py /etc/jupyterhub/

Auth

For small teams, system PAM auth works – every user with a local Unix account can log in:

c.JupyterHub.authenticator_class = "jupyterhub.auth.PAMAuthenticator"

For larger teams integrate with OAuth via the oauthenticator package – GitHub, Google, Okta are all supported.

GPU Access

All users see the GPU via the system driver. Within Jupyter they can import torch and use .cuda(). Multiple users on the same GPU will compete for VRAM – MPS helps for cooperative users or use explicit CUDA_VISIBLE_DEVICES per user on multi-GPU systems.

Isolation

For true per-user isolation use the DockerSpawner – each user gets a containerised Jupyter with defined GPU quota:

c.JupyterHub.spawner_class = "dockerspawner.DockerSpawner"
c.DockerSpawner.image = "jupyter/tensorflow-notebook:latest"
c.DockerSpawner.extra_host_config = {"runtime": "nvidia"}

Quotas prevent one user from locking up the GPU. For small trusted teams, system PAM with manual coordination is simpler.

Shared Team GPU Workstation

JupyterHub preconfigured on UK dedicated GPU hosting for data science teams.

Browse GPU Servers

See remote VS Code.

Need a Dedicated GPU Server?

Deploy from RTX 3050 to RTX 5090. Full root access, NVMe storage, 1Gbps — UK datacenter.

Browse GPU Servers

admin

We benchmark, deploy, and optimise GPU infrastructure for AI workloads. All data in our guides comes from real-world testing on our UK-based dedicated GPU servers.

Ready to deploy your AI workload?

Dedicated GPU servers from our UK datacenter. NVMe storage, 1Gbps networking, full root access.

Browse GPU Servers Contact Sales

Have a question? Need help?