-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No warning in UI when Lab cannot uninstall an extension #15797
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
The default extension manager (using PyPI) does not use Node.js at all. The underlying problem must be different.
The question is why the extension did not get uninstalled from UI. One possibility is that multiple versions were installed, one using the UI extension manager and one using the CLI. Another is a problem with python environment configuration. |
Upgrading to Node 21 immediately resolved the issue by the way, both allowing Regarding order of operations, since I realize that it could have been one plugin blocking the other from uninstalling, I was using frz-jupyterlab-variableinspector and jupyterlab-snippets. After upgrading Node, I uninstalled inspector through I'll go ahead and try to recreate the issue so we can get a good log. |
Commands I ran: nvm use system # system = v16.16.0
jupyter lab The only notable line from the terminal log is this:
EDIT: Wait, I can't uninstall inspector on v21 either. The extension also has a different name in the "Installed" menu than in the "Discover" menu: "feiranzhang-jupyterlab-variableinspector" instead of "frz-jupyterlab-variableinspector". However, the Python module name is the "frz" one. I don't think Node has anything to do with this, now. I just tested again and I was able to uninstall "snippet" fine through the UI in v16, but not "inspector". It seems to be an issue with that extension specifically. |
Edited OP to reflect new error details. |
Thank you for investigating further and the additional details. There might be a bug with PyPI manager not using the package name from |
Regarding the lack of output with Node <18; all versions of Node before 18 are no longer being maintained, so we encourage everyone to be using 18 or later. See https://nodejs.org/en/about/previous-releases for details. |
Had the same issue with frz-jupyterlab-variableinspector. Couldnt disable or uninstall with UI. pip uninstall worked for me Using JupyterLab DesktopApp for Windows |
Description
When you uninstall an extension through the JupyterLab UI's Extension Manager, if Lab is unable to uninstall it, it will just not remove it from the Installed list and prompt the user to refresh the window like normal instead of warning you that you need to uninstall it through
pip
.The only way to learn that you must uninstall it through
pip
is by runningjupyter labextension uninstall
, which btw sidenote can't print anything if you're running on NodeJS < 18.0.0.Reproduce
frz-variable-analyzer
through JupyterLab UI > Extension Manager > Discover.Expected behavior
An error message should display indicating that JupyterLab cannot uninstall the extension and the user must uninstall it through
pip
, and the "on successful uninstall" behavior should not continue.Context
Troubleshoot Output
The text was updated successfully, but these errors were encountered: