Title: Add ability to disable callbacks temporarily · Issue #20802 · matplotlib/matplotlib · GitHub
Open Graph Title: Add ability to disable callbacks temporarily · Issue #20802 · matplotlib/matplotlib
X Title: Add ability to disable callbacks temporarily · Issue #20802 · matplotlib/matplotlib
Description: It may be useful to update some attributes on an object that has callbacks temporarily and we don't want those callback signals being processed during that time. I guess we could add a disabling_callbacks() context manager on CallbackReg...
Open Graph Description: It may be useful to update some attributes on an object that has callbacks temporarily and we don't want those callback signals being processed during that time. I guess we could add a disabling_ca...
X Description: It may be useful to update some attributes on an object that has callbacks temporarily and we don't want those callback signals being processed during that time. I guess we could add a disablin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add ability to disable callbacks temporarily","articleBody":"It may be useful to update some attributes on an object that has callbacks temporarily and we don't want those callback signals being processed during that time.\r\n\r\nI guess we could add a `disabling_callbacks()` context manager on CallbackRegistry?\r\n```python\r\nwith self.norm.callbacks.disabling_callbacks(), cbook._setattr_cm(self.norm, ...): ...\r\n```\r\n\r\n_Originally posted by @anntzer in https://github.com/matplotlib/matplotlib/pull/19553#discussion_r684096220_","author":{"url":"https://github.com/greglucas","@type":"Person","name":"greglucas"},"datePublished":"2021-08-06T14:23:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/20802/matplotlib/issues/20802"}
| 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:65539fd6-b1cd-81d8-2201-36e8c6035acf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3D8:2121C6:138F977:1ACA22B:6A521CC1 |
| html-safe-nonce | e43eb673d4cf97252646206375dc9d96783ece78c4142a5cf56699196c170a61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0Q4OjIxMjFDNjoxMzhGOTc3OjFBQ0EyMkI6NkE1MjFDQzEiLCJ2aXNpdG9yX2lkIjoiNzEwNDUzOTE2Mzk4NzQxODMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb7718b3ee097446b28ba3deac5c1952a719a482c5379c4493284627fb9cd261 |
| hovercard-subject-tag | issue:962785031 |
| 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/20802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/705a7a2b06d8bc68f0ee7e1af29d7aaf3b6ad10e0db851d6bb895a6ffc3c0ea5/matplotlib/matplotlib/issues/20802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/705a7a2b06d8bc68f0ee7e1af29d7aaf3b6ad10e0db851d6bb895a6ffc3c0ea5/matplotlib/matplotlib/issues/20802 |
| og:image:alt | It may be useful to update some attributes on an object that has callbacks temporarily and we don't want those callback signals being processed during that time. I guess we could add a disabling_ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | greglucas |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width