Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nbagg: Don't send events if manager is disconnected. #16742

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

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Mar 12, 2020

PR Summary

This occurs, e.g., when saving figures, as one of the first things print_figure does is to remove the figure manager. This does mean that nbagg won't be able to set the wait cursor when saving a file, but before 0944dcb that was not being done,and after, saving was broken, so there's no net loss.

Fixes #16721.

Not sure if there's a way to write a test for this yet.

PR Checklist

  • [?] Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

This occurs, e.g., when saving figures, as one of the first things
`print_figure` does is to remove the figure manager. This does mean that
nbagg won't be able to set the wait cursor when saving a file, but
before 0944dcb that was not being done,
and after, saving was broken, so there's no net loss.

Fixes matplotlib#16721.
@QuLogic QuLogic added this to the v3.2.1 milestone Mar 12, 2020
@jklymak
Copy link
Member

jklymak commented Mar 12, 2020

I'll merge with the guilt of no knowing either how to write a test.

@jklymak jklymak merged commit 7d4de7c into matplotlib:master Mar 12, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 12, 2020
jklymak added a commit that referenced this pull request Mar 12, 2020
…742-on-v3.2.x

Backport PR #16742 on branch v3.2.x (nbagg: Don't send events if manager is disconnected.)
@QuLogic QuLogic deleted the nbagg-save branch March 12, 2020 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nbAgg backend does not allow saving figures as png
3 participants