Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give multiple users access to the same JupyterLab server using JupyterHub?

I am working a Jupiter Notebook/ Lab (via JupyterHub) integration into an other application.

Goal:

The goal is to allow users to create a Jupyter Notebook/ Lab server from the application (using the JupyterHub API) and therefore extend the applications capabilities with the power of python.

As far as I know this would be possible by implementing a custom Authenticator that integrates the applications login system and create the servers using the JupyterHub API.

Problem:

A nice feature would be to give multiple users of the application access to the same Jupyter Notebook/ Lab (server). However, I cannot find a way to share servers across users or mange permissions to servers.

There is a Groups feature in JupyterHub, but it is very poorly documented... and I don't really understand what it is doing.

I would be grateful for any help, whether this is (at all) possible with JupyterHub?

like image 544
Bohne Avatar asked Jan 18 '26 07:01

Bohne


1 Answers

You need to generate the JuputerHub configuration file, using jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_conf.py. Then edit that config file to include the line: c.Spawner.notebook_dir=/path/to/common/directory. You will need to configure other things also to make it work properly.

Run the JupyterHub with: jupyterhub -f /etc/jupyterhub/jupyterhub_conf.py &, or better, as a service.

like image 122
coding Avatar answered Jan 20 '26 19:01

coding