Title: `matplotlib>=3.3.2` breaks `ipywidgets.interact` · Issue #18638 · matplotlib/matplotlib · GitHub
Open Graph Title: `matplotlib>=3.3.2` breaks `ipywidgets.interact` · Issue #18638 · matplotlib/matplotlib
X Title: `matplotlib>=3.3.2` breaks `ipywidgets.interact` · Issue #18638 · matplotlib/matplotlib
Description: Bug report Bug summary Using ipywidgets.interact to update a figure works as expected in matplotlib<=3.3.1, but fails in matplotlib==3.3.2. I don't think this is an ipywidgets issue since downgrading matplotlib fixes this issue. Code for...
Open Graph Description: Bug report Bug summary Using ipywidgets.interact to update a figure works as expected in matplotlib<=3.3.1, but fails in matplotlib==3.3.2. I don't think this is an ipywidgets issue since downgradi...
X Description: Bug report Bug summary Using ipywidgets.interact to update a figure works as expected in matplotlib<=3.3.1, but fails in matplotlib==3.3.2. I don't think this is an ipywidgets issue since do...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18638
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`matplotlib\u003e=3.3.2` breaks `ipywidgets.interact`","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nUsing `ipywidgets.interact` to update a figure works as expected in `matplotlib\u003c=3.3.1`, but fails in `matplotlib==3.3.2`.\r\n\r\nI don't think this is an `ipywidgets` issue since downgrading `matplotlib` fixes this issue.\r\n\r\n**Code for reproduction**\r\n\r\nIn[1]:\r\n```python\r\n%matplotlib notebook\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nimport ipywidgets as ipyw\r\n\"works if %s \u003c= 3.3.1\" % mpl.__version__\r\n```\r\nIn[2]:\r\n```python\r\nfig = plt.figure()\r\n@ipyw.interact(m=ipyw.FloatSlider(value=1, min=-10, max=10, step=0.01))\r\ndef update(m):\r\n plt.figure(fig.number, clear=True)\r\n plt.plot([m * x for x in range(-9, 10)])\r\n```\r\n\r\nFollowed by moving the slider.\r\n\r\n**Actual outcome**\r\n\r\n- when moving the slider, the figure does not update\r\n- a second figure is sometimes created instead\r\n- the second figure is usually blank, but sometimes updates instead\r\n\r\n**Expected outcome**\r\n\r\n- the original figure updates as it does in `matplotlib==3.3.1`\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Ubuntu\r\n * Matplotlib version: 3.3.2 vs 3.3.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): nbAgg\r\n * Python version: 3.7.8\r\n * Jupyter version (if applicable): jupyter-core==4.6.3\r\n * Other libraries: ipywidgets==7.5.1\r\n * Installation source: `conda` channel `conda-forge`\r\n","author":{"url":"https://github.com/casperdcl","@type":"Person","name":"casperdcl"},"datePublished":"2020-10-02T19:24:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/18638/matplotlib/issues/18638"}
| 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:e6ee8ff6-58f7-7f32-4f0e-a4bab0f5e174 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98A2:1BB425:203133A:2BC4EDE:6A538719 |
| html-safe-nonce | 5bf18405898c8b3e54fd452b72f1e576a91555faffa7e01ab02a6eaf1c95919f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEEyOjFCQjQyNToyMDMxMzNBOjJCQzRFREU6NkE1Mzg3MTkiLCJ2aXNpdG9yX2lkIjoiMjU5OTU1ODQ0NjkzMzMxMzMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 06aadb7094b44b6d25e1164d0abd506467252d33b7265dd6270980cd5e9f3e20 |
| hovercard-subject-tag | issue:713851045 |
| 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/18638/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ae1c3f8272d7266c1cba300a51c271b2c0384fa32c29e76919f8160348a609d/matplotlib/matplotlib/issues/18638 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ae1c3f8272d7266c1cba300a51c271b2c0384fa32c29e76919f8160348a609d/matplotlib/matplotlib/issues/18638 |
| og:image:alt | Bug report Bug summary Using ipywidgets.interact to update a figure works as expected in matplotlib<=3.3.1, but fails in matplotlib==3.3.2. I don't think this is an ipywidgets issue since downgradi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | casperdcl |
| 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