Jupyterlab - how can I enable users to install their plugins in their home dir?

Hi, I am at the config stage with Jupyterlab on OOD but wondered how would I set plugins to be installable by users in their home directory. Default writes to the app directory which is read only for users. I tried the juperterlab command line arg “–app-dir ~/” but got this error

module loaded are
[chris.welsh@login002 ~]$ module list

Currently Loaded Modules:

  1. openssl/3.4.0-oap6u4c 2) node-js/22.4.0-xbzxcu7 3) py-jinja2/3.1.4-4efuj77 4) py-jupyterlab-server/2.22.1-de5gkyq 5) py-traitlets/5.14.3-wyhgwuv 6) py-jupyterlab/4.0.1-lpj6biz

running Jupyter lab build and get

[chris.welsh@login002 ~]$ jupyter-lab build

Traceback (most recent call last):

File “/hpc/spack/v0.23/opt/spack/linux-rhel9-ivybridge/gcc-13.3.1/py-jupyterlab-4.0.1-lpj6biz75l7crfwnf6odljgk3jtddewr/bin/jupyter-lab”, line 5, in

from jupyterlab.labapp import main

File “/hpc/spack/v0.23/opt/spack/linux-rhel9-ivybridge/gcc-13.3.1/py-jupyterlab-4.0.1-lpj6biz75l7crfwnf6odljgk3jtddewr/lib/python3.11/site-packages/jupyterlab/_init_.py”, line 7, in

from .serverextension import load_jupyter_server_extension  # noqa

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/hpc/spack/v0.23/opt/spack/linux-rhel9-ivybridge/gcc-13.3.1/py-jupyterlab-4.0.1-lpj6biz75l7crfwnf6odljgk3jtddewr/lib/python3.11/site-packages/jupyterlab/serverextension.py”, line 4, in

from jupyter_server.utils import url_path_join

ModuleNotFoundError: No module named ‘jupyter_server’

How have others succeeded or do they let root always install the plugins for users at their request?

Thx

Terribly sorry for the delay. I’m not too sure about this. We instruct our users to create their own kernels for this or that - but I don’t think we let them add Jupyter plugins at OSC.