-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
auto enable nbextension when installing with pip #342
Conversation
see jupyter/notebook#3116 for the changes that made this possible. |
Great, I was thinking about this the other day... some comments:
That's OK. Not a problem. |
What most of the widgets do, is to keep the old method, and wait say a year until many people have moved. Another issue is that if the unlink script gets called, the extension is disabled, never to be abled again (it will override the defaults provided by this mechanism). |
For those widgets, the new conda packages will be enabled by default when the build script is run (or the script cmd in the recipe), but then it is enabled again with the post-link? How do you solve that inconsistency?
I do not understand how the unlink script could give you problem if it is not there... can you explain me a little bit more? Thanks!! |
{
"load_extensions": {
"ipyvolume/extension": false
}
} If after installing the new version (of say ipyvolume) which will add a file to the .d directory, it will not be enabled, since the settings of the json file takes precedence over the values from the I think the unlink script actually should not execute disable, since it does not leave an environment in the state it was in before the package was installed. In short, it doesn't hurt to merge this PR, it will make people using pip happy, but for the conda-forge users we cannot removed the link/unlink scripts yet. |
Oh, now it makes sense.
Got it! Thanks for the additional explanation.
Interesting discussion...
Understood. Still, this comment is pertinent, I think:
|
being a pip user myself, I would love this PR to make it in the next release I can propose to handle the impact on the doc once the new one is on. Also about the 404 that triggers concerning |
It is the idea to include it.
Thanks.
Not a big deal for now, I think. |
We don't do this for ipywidget, ipyvolume, threejs or bqplot (AFAIK). We just mention that you still need to run this when you have < 5.3. |
That's ok, I guess... let's do the same than the other lib does. |
Thanks you for this great extension! |
I could finally test this one and looks good. Merging now and sorry for the delay! |
This will enable rise for notebook >= 5.3. I do see a 404 for rise.css, i'm not sure that is ok.