Title: Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined · Issue #9380 · matplotlib/matplotlib · GitHub
Open Graph Title: Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined · Issue #9380 · matplotlib/matplotlib
X Title: Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined · Issue #9380 · matplotlib/matplotlib
Description: Bug report When using the webagg backend on 2.1.0, importing pyplot fails with a NameError. Code for reproduction import matplotlib matplotlib.use('WebAgg') from matplotlib import pyplot Actual outcome I get a name error. traceback excer...
Open Graph Description: Bug report When using the webagg backend on 2.1.0, importing pyplot fails with a NameError. Code for reproduction import matplotlib matplotlib.use('WebAgg') from matplotlib import pyplot Actual out...
X Description: Bug report When using the webagg backend on 2.1.0, importing pyplot fails with a NameError. Code for reproduction import matplotlib matplotlib.use('WebAgg') from matplotlib import pyplot Ac...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9380
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined","articleBody":"\r\n### Bug report\r\n\r\nWhen using the webagg backend on 2.1.0, importing pyplot fails with a NameError.\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('WebAgg')\r\nfrom matplotlib import pyplot\r\n```\r\n\r\n**Actual outcome**\r\n\r\nI get a name error. traceback excerpt:\r\n```\r\n.../python3.6/site-packages/matplotlib/backends/__init__.py in pylab_setup(name)\r\n 58 # imports. 0 means only perform absolute imports.\r\n 59 backend_mod = __import__(backend_name, globals(), locals(),\r\n---\u003e 60 [backend_name], 0)\r\n 61 \r\n 62 # Things we pull in from all backends\r\n\r\n.../python3.6/site-packages/matplotlib/backends/backend_webagg.py in \u003cmodule\u003e()\r\n 325 \r\n 326 @_Backend.export\r\n--\u003e 327 class _BackendWebAgg(_Backend):\r\n 328 FigureCanvas = FigureCanvasWebAgg\r\n 329 FigureManager = FigureManagerWebAgg\r\n\r\n.../python3.6/site-packages/matplotlib/backends/backend_webagg.py in _BackendWebAgg()\r\n 327 class _BackendWebAgg(_Backend):\r\n 328 FigureCanvas = FigureCanvasWebAgg\r\n--\u003e 329 FigureManager = FigureManagerWebAgg\r\n 330 \r\n 331 @staticmethod\r\n\r\nNameError: name 'FigureManagerWebAgg' is not defined\r\n```\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Mac OS 10.12.6\r\n * Matplotlib version: 2.1.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): WebAgg\r\n * Python version: Python 3.6.2 \r\n * Jupyter version (if applicable): -\r\n * Other libraries: \r\n\r\n\r\nI installed matplotlib via pip.\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/cknd","@type":"Person","name":"cknd"},"datePublished":"2017-10-12T14:58:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/9380/matplotlib/issues/9380"}
| 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:544f2841-6924-3e0f-2f77-bf3e7e029fc2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8226:25BA60:1A746D:224ABA:6A52F093 |
| html-safe-nonce | d503bee51ec9fe774bb39d806f2d891d82435259c36e1f2686a4e2720987a31d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjI2OjI1QkE2MDoxQTc0NkQ6MjI0QUJBOjZBNTJGMDkzIiwidmlzaXRvcl9pZCI6Ijg3MDA3MDgyMjEzMjM3Njc5NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aaa40ce329232e1e40bd34925c6ab82e47c2f824d4010be9e768d913660ec6d5 |
| hovercard-subject-tag | issue:264974189 |
| 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/9380/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a141bbae8f53c09675875f219258e371fd37fcc9b5e61fa0ba252d8051decec8/matplotlib/matplotlib/issues/9380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a141bbae8f53c09675875f219258e371fd37fcc9b5e61fa0ba252d8051decec8/matplotlib/matplotlib/issues/9380 |
| og:image:alt | Bug report When using the webagg backend on 2.1.0, importing pyplot fails with a NameError. Code for reproduction import matplotlib matplotlib.use('WebAgg') from matplotlib import pyplot Actual out... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cknd |
| 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