JupyterHub: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Setup JupyterHub = * create new user and group jupyterhub and put user in group shadow * allow sudo for members of group. Create /etc/sudoers.d/jupyterhub Cmnd_Alias JUPYTER_CMD = /home/jupyterhub/miniconda3/bin/sudospawner jupyterhub ALL=(%jupyterhub) NOPASSWD:JUPYTER_CMD * install conda for that user script=Miniconda3-latest-Linux-x86_64.sh wget "https://repo.anaconda.com/miniconda/$script" chmod +x "$script" "./$script" -b ~/miniconda3/bin/conda init bash ....") |
|||
Line 14: | Line 14: | ||
conda update conda | conda update conda | ||
* install packages | * install packages | ||
conda install -c conda-forge jupyterhub sudospawner opencv pandas matplotlib | conda install -c conda-forge jupyterhub jupyterlab sudospawner opencv pandas matplotlib | ||
* configure jupyterhub | * configure jupyterhub | ||
jupyterhub --generate-config -f jupyterhub_config.py | jupyterhub --generate-config -f jupyterhub_config.py |
Revision as of 13:49, 1 April 2022
Setup JupyterHub
- create new user and group jupyterhub and put user in group shadow
- allow sudo for members of group. Create /etc/sudoers.d/jupyterhub
Cmnd_Alias JUPYTER_CMD = /home/jupyterhub/miniconda3/bin/sudospawner jupyterhub ALL=(%jupyterhub) NOPASSWD:JUPYTER_CMD
- install conda for that user
script=Miniconda3-latest-Linux-x86_64.sh wget "https://repo.anaconda.com/miniconda/$script" chmod +x "$script" "./$script" -b ~/miniconda3/bin/conda init bash . ~/.bashrc conda update conda
- install packages
conda install -c conda-forge jupyterhub jupyterlab sudospawner opencv pandas matplotlib
- configure jupyterhub
jupyterhub --generate-config -f jupyterhub_config.py add line "c.JupyterHub.bind_url = 'http://:7000'" to config file
- start the hub
jupyterhub --JupyterHub.spawner_class=sudospawner.SudoSpawner
- login at http://localhost:7000