Title: nbagg close figure when removed from dom · Issue #4841 · matplotlib/matplotlib · GitHub
Open Graph Title: nbagg close figure when removed from dom · Issue #4841 · matplotlib/matplotlib
X Title: nbagg close figure when removed from dom · Issue #4841 · matplotlib/matplotlib
Description: Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf and starts the clean up process). This add...
Open Graph Description: Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf an...
X Description: Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf an...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nbagg close figure when removed from dom","articleBody":"Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf and starts the clean up process).\n\nThis addresses the case where users have \n\n```\nfig, ax = plt.subplots()\n...\n\n```\n\nin a cell they keep re-executing.\n\nattn @pelson \n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2015-07-31T19:18:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4841/matplotlib/issues/4841"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1a013c43-0c42-1cd4-4780-1662fd3fe243 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9DA:6CD0B:17E7767:20B6FCA:6A53E85B |
| html-safe-nonce | 27445166741753dc8a1f3cf2e165268c3d50c755b04514c6cac5ed3fb8aaa4f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOURBOjZDRDBCOjE3RTc3Njc6MjBCNkZDQTo2QTUzRTg1QiIsInZpc2l0b3JfaWQiOiI3MDM2OTk2NjkyOTc0MjMzNjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 886f1ce2fbc77f799dd815d6792ee989b6f72cb16c77efe8a7c77873494b2344 |
| hovercard-subject-tag | issue:98454384 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/4841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d1a40c9f8b03477dad5002590577bd6e0d481a2acd8a1d0d1430f0317c2a571/matplotlib/matplotlib/issues/4841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d1a40c9f8b03477dad5002590577bd6e0d481a2acd8a1d0d1430f0317c2a571/matplotlib/matplotlib/issues/4841 |
| og:image:alt | Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width