-
Notifications
You must be signed in to change notification settings - Fork 295
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
[MRG] link server extension subcommands to main app #157
Conversation
I don't have time to review the code, but the user interface is much better this way. Thanks! |
Thx @Zsailer. Haven't tried to run these changes, but from a quick look at the code, the old A second question is the ability to list the ExtensionApp. Current implementation do not list them (in other words, the installed json are not taken into account) and I do not see any change here to list them. Maybe we need to forsee an additional syntax like |
There's some inconsistency on the default location for extension when listing, enabling, and disabling extensions. In the JEP, we propose defaulting to |
Hi Zach, I guess you are referring to jupyter/enhancement-proposals#33 where you propose Is the intent to implement in this PR the search for json in all folders under the folders returned by |
👍
It looks like notebook consistently chooses
Yes. 😃 That's the goal. |
While working on this further, I'm finding our extension subapp is quite brittle. For example, you can enable an extension that doesn't actually exist (i.e. not installed or importable). There is some validation that happens, but the extension will still be added to a config file and set to enabled even if the validation fails... This has led me to do a minor refactor of our extension listing/enabling/disabling mechanism. I'll update this PR soon. |
Ok, I've refactored the
|
I have installed nbclassic and 3 simple extension-apps.
Then I have run
The To summarize, the listing only contains the ExtensionApps, but not the former server extensions. Maybe this is the expected behavior? In that case, I would prefer having to invoke |
PS: |
Just discussed the above question related to |
LGTM |
Here is a different way of accomplishing #151. @echarles
This creates a new subapp,
jupyter server extension
, with multiple subcommands:jupyter server extension list
: lists all server extensionsjupyter server extension enable <name>
: enables an extensionjupyter server extension disable <name>
: disables an extension.@vidartf @dhirschfeld @rolweber, what do you think?