Skip to content

Commit

Permalink
Enable sharing in JupyterHub and update single-user Dockerfile to ins…
Browse files Browse the repository at this point in the history
…tall jupyterlab-link-share
  • Loading branch information
marc-hanheide committed Feb 7, 2025
1 parent 69c2ef0 commit 4b70d47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@

c = get_config()

# We rely on environment variables to configure JupyterHub so that we
# avoid having to rebuild the JupyterHub container every time we change a
# configuration parameter.

# eanble sharing https://jupyterhub.readthedocs.io/en/latest/reference/sharing.html#sharing-reference
c.JupyterHub.load_roles = [
{
"name": "user",
"scopes": ["self", "shares!user", "read:users:name", "read:groups:name"],
},
]


# Spawn single-user servers as Docker containers
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
Expand Down
2 changes: 1 addition & 1 deletion singleuser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN echo -e "jupyter\njupyter" | passwd jovyan
#RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
#RUN apt-get update

RUN pip install jupyter-collaboration
RUN pip install jupyter-collaboration jupyterlab-link-share
# RUN pip install --upgrade octave_kernel bash_kernel

# RUN pip install --upgrade calysto_prolog octave_kernel bash_kernel
Expand Down

0 comments on commit 4b70d47

Please sign in to comment.