-
-
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
Replace a side-pane widget without replacing the plugin #10137
Comments
It's possible that #9667 might already help a bit by making the plugins more reusable and easy to replace.
It should also be possible to disable single plugins (instead of the whole extension), for example the jupyterlab/packages/filebrowser-extension/src/index.ts Lines 142 to 155 in 327832c
With: {
"disabledExtensions": ["@jupyterlab/filebrowser-extension:browser"]
} |
Thanks! Disabling only |
Nice! Do you think the docs should be a bit more clear about how to replace existing plugins? If so maybe this section would be the one to expand on? https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html#disabledextensions |
I guess the docs are fine. It was just unclear to me which plugin I needed to disable for my special case. |
I would say a concrete example would help. A list of steps with commands to run. To have a concrete extension, a new one could be added in https://github.com/jupyterlab/extension-examples |
Sounds good. Maybe that example could have a smaller scope than replacing the file browser. For example replacing the jupyter logo in the top left corner by something else: Since the logo is added as a plugin here: jupyterlab/packages/application-extension/src/index.tsx Lines 956 to 972 in d6c3857
|
That would be awesome! and a very useful case. |
Problem
I am willing to use this extension: https://github.com/youngthejames/jupyterlab_filetree and to have it replace the core filebrowser extension.
I am aware one can disable another plugin using
"disabledExtensions": ["@jupyterlab/filebrowser-extension"]
, and it seems to do what it says. But doing this brings multiple issues as other extensions are using the core filebrowser plugins.So I am wondering if one could simply replace a widget instead of an entire extension.
Proposed Solution
Maybe something like:
The text was updated successfully, but these errors were encountered: