Extension manager now default in Jupyterlab 2.1?

Hi! I’m building new base images and so finally had a look at JupyterLab 2.1. It looks like the Extension Manger is enabled by default now? Is this intentional, or just a side-product of the large refactor? I ask because it doesn’t seem to be documented.

Since I’m building these bases to run inside Gigantum, it doesn’t make as much sense for the user to configure extensions through the Jupyter UI. I suppose this would be similar to folks running on Binder, JupyterHub or other dockerized Jupyter envs?

We create the user directory at runtime, so to the extent possible, I’d like to avoid needing to create a jupyter config (it’s just one more moving piece). If there were a command-line run-time flag, that’d be a little nicer for my use case. But to recap:

  1. Is the plan to keep the extension manager enabled by default going forwards?
  2. If so, what’s the easiest way to configure a jupyterlab isntance to run with extension manager disabled (ideally avoiding writing to user home dir)?


It’s the very first item in the changelog for 2.1: https://jupyterlab.readthedocs.io/en/stable/getting_started/changelog.html#v2-1-0

Display the extension manager in the left sidebar by default. Users will need to acknowledge the disclaimer in the extension manager before using it.

The plan is to keep it visible, yes.

The easiest way to disable extensions at a system level is to create a page_config.json file disabling those extensions, as documented at https://jupyterlab.readthedocs.io/en/stable/user/extensions.html#settings

You could also run the jupyter labextension disable ... command for the user in your setup, I suppose.

1 Like

:man_facepalming: Sorry - I didn’ see it in the places that I checked, but the changelog is the obvious place to look to answer this question.

I’ll have a look at whether running jupyter labextension disable as root will disable things for all users. But I also see that I could potentially get around this by setting JUPYTERLAB_SETTINGS_DIR to a directory that exists at image build time.

Thank you!