Title: Call IPython.enable_gui when install repl displayhook by ianthomas23 · Pull Request #28332 · matplotlib/matplotlib · GitHub
Open Graph Title: Call IPython.enable_gui when install repl displayhook by ianthomas23 · Pull Request #28332 · matplotlib/matplotlib
X Title: Call IPython.enable_gui when install repl displayhook by ianthomas23 · Pull Request #28332 · matplotlib/matplotlib
Description: Closes #28324. This fixes the use of plt.show(block=False) in ipython without specifying a particular backend beforehand. The recent refactor of backend handling in IPython/Matplotlib removed the call to ip.enable_gui in install_repl_displayhook but in this particular use case it is still needed. If a backend is specified in ipython beforehand (via ipython --matplotlib or %matplotlib for example) then IPython already knows about the correct event loop, but if not then IPython needs to be explicitly told about it via ip.enable_gui. So really this is putting functionality back in that I erroneously removed in the backend refactor. On macos the default macosx backend needs an extra fix in IPython that I will link to.
Open Graph Description: Closes #28324. This fixes the use of plt.show(block=False) in ipython without specifying a particular backend beforehand. The recent refactor of backend handling in IPython/Matplotlib removed the c...
X Description: Closes #28324. This fixes the use of plt.show(block=False) in ipython without specifying a particular backend beforehand. The recent refactor of backend handling in IPython/Matplotlib removed the c...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/28332
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:de5efaf6-7693-fdbc-05cd-0fe3aad27a5f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DBFA:3367C0:5FAA0E:8AB641:6A54A37B |
| html-safe-nonce | 8ecdcd384c27ef8ae11123996f6e74951700866e8e2f70f6c6e89b553d89245b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkZBOjMzNjdDMDo1RkFBMEU6OEFCNjQxOjZBNTRBMzdCIiwidmlzaXRvcl9pZCI6IjE0ODAwMTczNDIyNTE3MDUyMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f93c22b09c43a18bbf32dc0e349186e68f902ec57c30023a24439c1aad809833 |
| hovercard-subject-tag | pull_request:1900907348 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/28332/files |
| twitter:image | https://avatars.githubusercontent.com/u/580326?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/580326?s=400&v=4 |
| og:image:alt | Closes #28324. This fixes the use of plt.show(block=False) in ipython without specifying a particular backend beforehand. The recent refactor of backend handling in IPython/Matplotlib removed the c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width