Title: [Bug]: Using an ipython config of `InteractiveShellApp.matplotlib='inline'` fails on macos for `matplotlib>3.9.0` · Issue #28855 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Using an ipython config of `InteractiveShellApp.matplotlib='inline'` fails on macos for `matplotlib>3.9.0` · Issue #28855 · matplotlib/matplotlib
X Title: [Bug]: Using an ipython config of `InteractiveShellApp.matplotlib='inline'` fails on macos for `matplotlib>3.9.0` · Issue #28855 · matplotlib/matplotlib
Description: Bug summary I am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5 With matplotlib<=3.9.0, I can plot visualizations inline within VS Code. The reported backend is by default inline and everyt...
Open Graph Description: Bug summary I am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5 With matplotlib<=3.9.0, I can plot visualizations inline within VS Code. The reported...
X Description: Bug summary I am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5 With matplotlib<=3.9.0, I can plot visualizations inline within VS Code. The repor...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28855
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Using an ipython config of `InteractiveShellApp.matplotlib='inline'` fails on macos for `matplotlib\u003e3.9.0`","articleBody":"### Bug summary\r\n\r\nI am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5\r\n\r\nWith `matplotlib\u003c=3.9.0`, I can plot visualizations inline within VS Code. The reported backend is by default `inline` and everything is fine.\r\n\r\nStarting with version 3.9.1, the default backend apparently switched to `macosx`. When I try to plot something now, a new Python window pops up, but no plot is created unless I add `plt.show()`.\r\n\r\nIs this the intended behavior? It breaks essentially all of my notebooks because I would have to go in and add `%matplotlib inline` to make things work again.\r\n\r\n\r\n### Code for reproduction\r\n\r\n```Python\r\nimport matplotlib.pyplot as plt\r\n\r\nimport matplotlib\r\n\r\nprint(matplotlib.get_backend())\r\n\r\nplt.plot([0, 1, 2], [1, 2, 3])\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nWith `matplotlib\u003c=3.9.0`:\r\n\r\n\u003cimg width=\"941\" alt=\"image\" src=\"https://github.com/user-attachments/assets/35144b43-2452-455c-a93a-2d4f63ea2123\"\u003e\r\n\r\nWith `matplotlib\u003e3.9.0`:\r\n\r\n\u003cimg width=\"720\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5c4d9e93-b7da-48a8-8551-d3b56874a450\"\u003e\r\n\r\n\r\n### Expected outcome\r\n\r\nDefault backend should be `inline` in `matplotlib\u003e3.9.0`.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nMacOS Ventura 13.4.1 \r\n\r\n### Matplotlib Version\r\n\r\n3.9.0, 3.9.1, 3.9.2\r\n\r\n### Matplotlib Backend\r\n\r\ninline, macosx\r\n\r\n### Python version\r\n\r\n3.12.5\r\n\r\n### Jupyter version\r\n\r\n6.5.1\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/Simon-Stone","@type":"Person","name":"Simon-Stone"},"datePublished":"2024-09-20T19:03:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/28855/matplotlib/issues/28855"}
| 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:fb343f07-0c14-034f-2b7a-83d394fb780c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5CA:1FA07A:17B9FDB:206A7CB:6A53ECF9 |
| html-safe-nonce | 57fee484507d5a1c55a05bacb3a02bd48a5132158a03ab16a514e79e61a2db17 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUNBOjFGQTA3QToxN0I5RkRCOjIwNkE3Q0I6NkE1M0VDRjkiLCJ2aXNpdG9yX2lkIjoiMzM3OTA3MzE0MDA1ODk2NDQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 04ffa51b0ec6ff91a5da9a8998a270bf463d4d5d6854647a59925a4610ffc038 |
| hovercard-subject-tag | issue:2539476488 |
| 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/28855/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00c1655acb59a044c52f6594078a461c9fa5e805d4883e2ddc04f6b0d25453a9/matplotlib/matplotlib/issues/28855 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00c1655acb59a044c52f6594078a461c9fa5e805d4883e2ddc04f6b0d25453a9/matplotlib/matplotlib/issues/28855 |
| og:image:alt | Bug summary I am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5 With matplotlib<=3.9.0, I can plot visualizations inline within VS Code. The reported... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Simon-Stone |
| 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