Title: Py3k: reload->imp.reload by bfroehle · Pull Request #1033 · matplotlib/matplotlib · GitHub
Open Graph Title: Py3k: reload->imp.reload by bfroehle · Pull Request #1033 · matplotlib/matplotlib
X Title: Py3k: reload->imp.reload by bfroehle · Pull Request #1033 · matplotlib/matplotlib
Description: In Python 3, plt.switch_backend() breaks because 2to3 does not correct "reload": /home/bfroehle/.local/lib/python3.2/site-packages/matplotlib/pyplot.py in switch_backend(newbackend) 117 global new_figure_manager, draw_if_interactive, _show 118 matplotlib.use(newbackend, warn=False) --> 119 reload(matplotlib.backends) 120 from matplotlib.backends import pylab_setup 121 new_figure_manager, draw_if_interactive, _show = pylab_setup() NameError: global name 'reload' is not defined It'd be relatively easy to work around this with a simple, but somewhat ugly fix: try: reload except: from imp import reload
Open Graph Description: In Python 3, plt.switch_backend() breaks because 2to3 does not correct "reload": /home/bfroehle/.local/lib/python3.2/site-packages/matplotlib/pyplot.py in switch_backend(newbackend) 1...
X Description: In Python 3, plt.switch_backend() breaks because 2to3 does not correct "reload": /home/bfroehle/.local/lib/python3.2/site-packages/matplotlib/pyplot.py in switch_backend(newbacken...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/1033
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7eff1b41-af82-87d9-05b7-fe108138dcee |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 865C:1D011C:38EB4F:4BFB3E:6A52EDC9 |
| html-safe-nonce | 43d1a097394b056fa8baae76dea939d93112692030319f179b69912933496dfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjVDOjFEMDExQzozOEVCNEY6NEJGQjNFOjZBNTJFREM5IiwidmlzaXRvcl9pZCI6IjUzNzUyNjg4NTUzOTk3NzE1OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9de65b2e6f9674c4752263e1cac830990e87b7b1c03b824e2d56a72df1c8e923 |
| hovercard-subject-tag | pull_request:1855027 |
| 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/1033/files |
| twitter:image | https://avatars.githubusercontent.com/u/204333?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/204333?s=400&v=4 |
| og:image:alt | In Python 3, plt.switch_backend() breaks because 2to3 does not correct "reload": /home/bfroehle/.local/lib/python3.2/site-packages/matplotlib/pyplot.py in switch_backend(newbackend) 1... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width