Title: [MNT]: macosx event_loop_is_running is a deceptive name · Issue #32041 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: macosx event_loop_is_running is a deceptive name · Issue #32041 · matplotlib/matplotlib
X Title: [MNT]: macosx event_loop_is_running is a deceptive name · Issue #32041 · matplotlib/matplotlib
Description: Summary The macosx backend has an event_loop_is_running method, documented as: Return whether the macosx backend has set up the NSApp main event loop. The method name is wrong, at least from the macOS perspective. The event loop is not r...
Open Graph Description: Summary The macosx backend has an event_loop_is_running method, documented as: Return whether the macosx backend has set up the NSApp main event loop. The method name is wrong, at least from the ma...
X Description: Summary The macosx backend has an event_loop_is_running method, documented as: Return whether the macosx backend has set up the NSApp main event loop. The method name is wrong, at least from the ma...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32041
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: macosx event_loop_is_running is a deceptive name","articleBody":"### Summary\n\nThe macosx backend has an `event_loop_is_running` method, documented as:\n\n> Return whether the macosx backend has set up the NSApp main event loop.\n\nThe method name is wrong, at least from the macOS perspective. The event loop is not running until a call to `plt.show()` or `FigureCanvas.start_event_loop`.\n\nThe documentation string is partially incorrect - the state of the event loop after we call `lazy_init()` is an implementation detail of NSApplication and PyOS_InputHook. It could still be \"not set up\" until the first call to `CFRunLoopGet…()`.\n\n### Proposed fix\n\nThe method should probably be `is_backend_initialized` or something similar with a documentation string of:\n\n> Return whether the macosx backend has been initialized.\n\nThat said, `event_loop_is_running` needs to remain a method as it is being directly called by [vispy's _detect_eventloop.py](https://github.com/vispy/vispy/blob/main/vispy/app/_detect_eventloop.py)\n\nPerhaps we should expose our `_get_running_interactive_framework()` as documented public API so other projects do not need to access backend internals?","author":{"url":"https://github.com/iccir","@type":"Person","name":"iccir"},"datePublished":"2026-07-14T18:34:52Z","url":"https://github.com/matplotlib/matplotlib/issues/32041"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:348ad50c-e8f2-0ea8-f413-b24e90679fe5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC78:3422CF:17B6371:1F44BA0:6B067171 |
| html-safe-nonce | 61961721a6d607d9f152d83435cf29b0e07d0145a6126dd14b7a2f6ba19c146e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc4OjM0MjJDRjoxN0I2MzcxOjFGNDRCQTA6NkIwNjcxNzEiLCJ2aXNpdG9yX2lkIjoiOTAxODI0OTA0MzQ1MzA0NzE1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b64ce2157b13ae07785e430a005278b3a26c86969dca05dd5bc1d46f1c911f8e |
| hovercard-subject-tag | issue:4885986738 |
| 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/32041/issue_layout |
| twitter:image | https://opengraph.githubassets.com/120ca189b58a3a7b7f5b6c998a7e25ba2b477db6470fdf70891d9aa03b9e2060/matplotlib/matplotlib/issues/32041 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/120ca189b58a3a7b7f5b6c998a7e25ba2b477db6470fdf70891d9aa03b9e2060/matplotlib/matplotlib/issues/32041 |
| og:image:alt | Summary The macosx backend has an event_loop_is_running method, documented as: Return whether the macosx backend has set up the NSApp main event loop. The method name is wrong, at least from the ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iccir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width