Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix RecursionError when closing nbAgg figures.#17025

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:masterfromQuLogic:fix-nbagg-close
Apr 4, 2020

Conversation

QuLogic
Copy link
Member

PR Summary

Previously, if a figure number was not in the list of managed figures, the destroy would be skipped, but now that only happens if a figure number is passed. If a figure manager is passed, then the destroy happens regardless. In nbAgg, this loops around closing/close_event and eventually calls destroy again, leading to a RecursionError.

This broke in9e6f112; cc@anntzer.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 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

Previously, if a figure number was not in the list of managed figures,the destroy would be skipped, but now that only happens if a figurenumber is passed. If a figure manager is passed, then the destroyhappens regardless. In nbAgg, this loops around closing/close_event andeventually calls destroy again, leading to a RecursionError.
@QuLogicQuLogic added this to thev3.3.0 milestoneApr 4, 2020
Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

oops, lgtm.

@tacaswelltacaswell merged commit25a80b6 intomatplotlib:masterApr 4, 2020
@QuLogicQuLogic deleted the fix-nbagg-close branchApril 4, 2020 20:55
@QuLogicQuLogic mentioned this pull requestApr 7, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@anntzer@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp