Title: KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo · Issue #29337 · matplotlib/matplotlib · GitHub
Open Graph Title: KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo · Issue #29337 · matplotlib/matplotlib
X Title: KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo · Issue #29337 · matplotlib/matplotlib
Description: Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode, %matplotlib ipympl #%matplotlib widget import matplotlib.pyplot as plt and fig, ax = plt.subplots() ... ax.plot(...) raise KeyError: 'bu...
Open Graph Description: Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode, %matplotlib ipympl #%matplotlib widget import matplotlib.pyplot as plt and fig, ax = plt.subplot...
X Description: Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode, %matplotlib ipympl #%matplotlib widget import matplotlib.pyplot as plt and fig, ax = plt.subplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo","articleBody":"Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode, \r\n\r\n```\r\n%matplotlib ipympl\r\n#%matplotlib widget\r\nimport matplotlib.pyplot as plt\r\n```\r\n\r\nand\r\n\r\n```\r\nfig, ax = plt.subplots()\r\n...\r\nax.plot(...)\r\n```\r\n\r\nraise `KeyError: 'buttons'` in `c:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python313\\Lib\\site-packages\\matplotlib\\backends\\backend_webagg_core.py:295`\r\n\r\nrespectively\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/f8900ead0d9381a7652568768b065324f929734e/lib/matplotlib/backends/backend_webagg_core.py#L295\r\n\r\nChanging the key to `button` resolves the error (for my use case).","author":{"url":"https://github.com/gnbl","@type":"Person","name":"gnbl"},"datePublished":"2024-12-17T16:49:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/29337/matplotlib/issues/29337"}
| 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:caacbeab-504e-9788-81f2-89749f80d720 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFF8:179068:5A906C:793D8D:6A525353 |
| html-safe-nonce | d2bcdb1a44cf504802dfc17b63bbe93e6c45879ab566377b287edb40e9cb1be7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkY4OjE3OTA2ODo1QTkwNkM6NzkzRDhEOjZBNTI1MzUzIiwidmlzaXRvcl9pZCI6IjE3NzA3MzYyNzM5OTQxNzUzMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae6706f9d606c846e819acf0a9576e811b9c999f348a70d64adbba6c5d69e69f |
| hovercard-subject-tag | issue:2745471054 |
| 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/29337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab046b0eff429b38d077b1a85d2d35ac5c0887765add5c59c08b4689988ee4ed/matplotlib/matplotlib/issues/29337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab046b0eff429b38d077b1a85d2d35ac5c0887765add5c59c08b4689988ee4ed/matplotlib/matplotlib/issues/29337 |
| og:image:alt | Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode, %matplotlib ipympl #%matplotlib widget import matplotlib.pyplot as plt and fig, ax = plt.subplot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gnbl |
| 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