Skip to content

jupyter-server-proxy lab extension cannot be disabled #322

@cmd-ntrf

Description

@cmd-ntrf

Bug description

After running the jupyter labextension disable command on jupyter-server-proxy, the extension is still being loaded.

jupyter labextension disable @jupyterlab/server-proxy

Expected behaviour

The server extension should still be loaded, but the frontend extension should not be activated when loading jupyterlab.

Actual behaviour

The jupyterlab extension is activated regardless of the enable/disable status of jupyter-server-proxy labextension status.

How to reproduce

In a virtual environment:

  1. pip install jupyterlab jupyter-server-proxy jupyter-rsession-proxy
  2. jupyter labextension disable @jupyterlab/server-proxy
  3. jupyter lab
  4. The RStudio button still shows up in Jupyterlab launcher.

More details

The reason why I want to disable the jupyterlab extension while maintaining the server extension is because I have an extension that handles the server proxy launcher items instead of jupyter-server-proxy (i.e: jupyter-lmod).

I suspect the issue stems from the way jupyter-server-proxy install its lab extension using setup.py instead of using the jupyter labextension commands. What leads me to think that is that if I try to uninstall just the lab extension of jupyter-server-proxy like this:

$ jupyter labextension uninstall @jupyterlab/server-proxy

I am greeted with the following message:

JupyterLab cannot uninstall @jupyterlab/server-proxy since it was installed outside of JupyterLab. Use the same method used to install this extension to uninstall this extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions