Skip to content
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

Flush figures with new backend name #3277

Merged
merged 1 commit into from
Sep 13, 2021

Conversation

shaperilio
Copy link
Contributor

Earlier this year, the name of the backend used by matplotlib changed. See the change at ipykernel and ipython. This effectively makes ipywidgets not call flush_figures anymore and so interactives with plots stopped working (see this old issue).

This change fixes that so flush_figures is called again.

@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch shaperilio/ipywidgets/master

@jasongrout
Copy link
Member

Thanks!

Confirmed the problem and that this solution works with currently released set of packages.

@jasongrout jasongrout merged commit c3c6fa8 into jupyter-widgets:master Sep 13, 2021
@jasongrout
Copy link
Member

@meeseeksdev please backport to 7.x

meeseeksmachine pushed a commit to meeseeksmachine/ipywidgets that referenced this pull request Sep 13, 2021
jasongrout added a commit that referenced this pull request Sep 13, 2021
…7-on-7.x

Backport PR #3277 on branch 7.x (Flush figures with new backend name)
@jasongrout jasongrout added this to the 8.0 milestone Sep 13, 2021
@jasongrout
Copy link
Member

The backport of this PR, #3278, was just released in ipywidgets 7.6.5. Thanks again for reporting and fixing this!

@ianhi
Copy link
Contributor

ianhi commented Sep 14, 2021

@shaperilio thanks for the fix! - but I also want to make sure that you're aware of the ipywidget based backend for matplotlib: ipympl. It should have even better performance as well as allow mouse interactions such as zoom and pan. You can try out on binder here https://mybinder.org/v2/gh/matplotlib/ipympl/stable?urlpath=%2Flab%2Ftree%2Fexamples%2Fipympl.ipynb which should have some example of it working with ipywidges

@shaperilio
Copy link
Contributor Author

Thanks @ianhi; I'll take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants