-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add nbextension/serverextension commands for uninstall/disable all #2149
Comments
What's the use case? (Not trying to deny that there is one) For testing with extensions disabled, we added an environment variable in jupyter_core, so you can run |
The usage case is refreshing installs of everything. I don't work in envs, so I often come back and sit down to re-install the entire extension stack based on latest versions (nbgrader, ipywidgets, lab extensions, etc.). What I find is that in previous installation rounds I sometimes installed into user without realizing it. If my new install goes into sys prefix I run into problems. I end up having to walk through the entire tree of config/data for user/sysprefix and system to find all previous installations/config and kill it all. Some of this is that right now with JupyterLab we are seeing a huge amount of churn, so I have to do this often. But the same applies to nbextension/serverextensions (ipywidgets). |
So for me it isn't a debug issue, more of an installation refresh question. |
I face similar problems as @ellisonbg .
But the notebook still comes up with the extensions in the list of extensions in that tab, which lists them. I also tried complete reinstall of my Edit: I found the remaining installations. It seems there is also a jupyter installation in my base conda environment. In that my extensions were installed as well. The question then is, why would jupyter inside my actual conda env access extensions outside of the environment (in the conda base environment)? It should not do that. |
I don't know why it would find them from your conda root env. You can see the directories it should be looking in with |
@takluyver Is there a way to restrict this? So that I could define "only look in your own env"? |
You can effectively disable the user data directory by running the notebook server with We don't offer official ways to remove data directories, because data files by themselves aren't meant to have much effect, e.g. nbextensions are only loaded if they are enabled in config (which is in a different location). The nbextensions you saw loaded from your conda root env represent either a bug or a misconfiguration (e.g. the notebook server was not running the way you thought it was running). |
@takluyver Now that I found them and deleted them, it is not a problem anymore, but I think that exclusion of data directories would avoid future trouble, if I ever install an extension again without my shell script, which now always uses |
To clarify: we are proposing introducing an |
@gnestor I think so. Though it should probably only modify levels where the config is explicitly present:
|
Yes, that was the original idea as I remember.
…On Mon, Jul 31, 2017 at 7:44 AM, Min RK ***@***.***> wrote:
@gnestor <https://github.com/gnestor> I think so. Though it should
probably only modify levels where the config is explicitly present:
1. check every level where the enable config is defined
2. set enabled there
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABr0CyLHoX_Gsu1NLmksHCkLMHBIYjJks5sTeg7gaJpZM4L5xUY>
.
--
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com
|
I believe this is now the last open issue for 5.1. |
I think #2729 puts us in a good enough position on this for 5.1: uninstall no longer needs to be told where to uninstall from, so can be used to scrub out extensions. |
I agree - I think there's more we can do based on this use case, but we have a concrete improvement, and it's not worth holding up 5.1 further to do more about this. So if @gnestor is OK with it, let's bump this to 5.2. |
Agreed |
Looks like |
Closing as such feature is unlikely to be implemented in this repo. An equivalent of For Thanks all! |
It would be really helpful to have the following nbextension/server extension commands:
that work with the different scope flags (
--user
,--sys-prefix
, etc).The text was updated successfully, but these errors were encountered: