-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined #9380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cursory glance suggests that FigureManagerWebAgg has simply moved to # in matplotlib/backends/backend_webagg.py, line 329
@_Backend.export
class _BackendWebAgg(_Backend):
FigureCanvas = FigureCanvasWebAgg
FigureManager = core.FigureManagerWebAgg # ! (I'm on the go and can't make a proper PR right now. also not sure this is a complete fix - I can import pyplot now, but when I show a figure, the browser window opens with the "WebAgg current figures" title but stays blank) |
PR coming shortly....got side-tracked by ipython/ipython#10867 |
These files were moved as part of matplotlib#5754 which was reverted in matplotlib#9027, however matplotlib#6370 fixed the paths, but was not also reverted. Putting the js files in sub-directory makes sense, move the files rather than revert the changes in matplotlib#6370. fixes matplotlib#9380
closed by #9534, afaict |
Bug report
When using the webagg backend on 2.1.0, importing pyplot fails with a NameError.
Code for reproduction
Actual outcome
I get a name error. traceback excerpt:
Matplotlib version
print(matplotlib.get_backend())
): WebAggI installed matplotlib via pip.
The text was updated successfully, but these errors were encountered: