Hello! I would really appreciate help with installing a JupyterLab extension for all JupyterHub users. I’ve read various threads including this but (aside from using Lab) it seems my environment is configured differently.
We are using Ubuntu 22.04 LTS, with JupyterHub being run as a service by root (ExecStart=/root/.pyenv/shims/jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
). The jupyterhub_config.py
file has no modifications to env variables.
As root, running jupyter labextension list
shows the extension installed:
Other labextensions (built into JupyterLab)
app dir: /root/.pyenv/versions/3.10.4/share/jupyter/lab
@wuxinextcode/jupyterlab-notebookparams v3.1.0 enabled OK
As root, running jupyter lab path
gives the following:
Application directory: /root/.pyenv/versions/3.10.4/share/jupyter/lab
User Settings directory: /root/.jupyter/lab/user-settings
Workspaces directory: /root/.jupyter/lab/workspaces
We are using LocalProcessSpawner. As a JupyterLab user, running jupyter lab path
gives:
Application directory: /usr/local/share/jupyter/lab
User Settings directory: /home/some-user/.jupyter/lab/user-settings
Workspaces directory: /home/some-user/.jupyter/lab/workspaces
Also as the user, running jupyter labextension list
does not show the extension. And which jupyter
gives /usr/local/bin/jupyter
.
From other threads, I believe my problem is related to these configured paths, but I can’t quite find the answer online. Can I somehow configure JupyterHub to spawn JupyterLab instances that utilize one common configuration with the installed extension? TIA!