-
Notifications
You must be signed in to change notification settings - Fork 506
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
Separate jupyter widgets manager extension #1394
Conversation
1cbc7a8
to
96dbce2
Compare
fffc8dc
to
90a48e2
Compare
32270bd
to
6e52400
Compare
@trungleduc that works well!! Tested with jupyterlab_widgets 3.0.9 and 3.0.7. |
0fa8cbb
to
7da188f
Compare
for more information, see https://pre-commit.ci
Question about the releaser, we will bump both package versions on each release or they can be released separately? |
By default the releaser will bump both but I guess we can configure that in our bump script if we need. |
The test failure is legit. This new manager breaks jupyterlab because it says it provides the |
Because our extension needs a Voila app, I think we should separate the labextensions specific to Voila from the labextensions for other applications and lab-remixes in the path. So Voila would look into That way we're not breaking JupyterLab with our very specific extension. |
how can JupyterLab activate Voila's widget manager? We checked for the app instance before doing anything |
JupyterLab sees the Voila's widget manager provides the token |
It seems depending on I see @trungleduc did the same in https://github.com/voila-dashboards/voila-topbar and need to work with Let's open an issue later for this. |
96d7858
to
1a15e16
Compare
The labextension list command will not show voila-specific labextensions
70dd829
to
6926d1d
Compare
for more information, see https://pre-commit.ci
Ready for review |
As discussed with @trungleduc this will be too much of a change for a patch release. @trungleduc found a simpler fix and will come up with another PR. Though I'd like that we consider these changes in a 0.6.x release, as scoping labextensions specific to Voila may make sense in some cases. |
Closing in favor of #1501 |
References
A robust fix for #1392
Code changes
@jupyter-widgets/base
package in the federated extension logic, instead of having Voila ship its own copy of this package.share/jupyter/voila/labextensions
instead ofshare/jupyter/labextensions
. This prevents JupyterLab to load our widgets-manager and break the classic@jupyter-widgets/jupyterlab-manager