You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot import pyplot. NameError: 'FigureManagerWebAgg' is not defined #9380
.../python3.6/site-packages/matplotlib/backends/__init__.py in pylab_setup(name)
58 # imports. 0 means only perform absolute imports.
59 backend_mod = __import__(backend_name, globals(), locals(),
---> 60 [backend_name], 0)
61
62 # Things we pull in from all backends
.../python3.6/site-packages/matplotlib/backends/backend_webagg.py in <module>()
325
326 @_Backend.export
--> 327 class _BackendWebAgg(_Backend):
328 FigureCanvas = FigureCanvasWebAgg
329 FigureManager = FigureManagerWebAgg
.../python3.6/site-packages/matplotlib/backends/backend_webagg.py in _BackendWebAgg()
327 class _BackendWebAgg(_Backend):
328 FigureCanvas = FigureCanvasWebAgg
--> 329 FigureManager = FigureManagerWebAgg
330
331 @staticmethod
NameError: name 'FigureManagerWebAgg' is not defined
cursory glance suggests that FigureManagerWebAgg has simply moved to core. this works on my machine:
# in matplotlib/backends/backend_webagg.py, line 329@_Backend.exportclass_BackendWebAgg(_Backend):
FigureCanvas=FigureCanvasWebAggFigureManager=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)
Even with the fix in #9347 this stays broken (with the symptoms described in the second message) bisecting back to #9027.
Note that while #9027 is supposed to "only" revert #5754, the webagg backend was working even before #5754 was merged, so I guess something got broken during the revert.
Activity
cknd commentedon Oct 12, 2017
cursory glance suggests that FigureManagerWebAgg has simply moved to
core. this works on my machine:(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)
anntzer commentedon Oct 12, 2017
Even with the fix in #9347 this stays broken (with the symptoms described in the second message) bisecting back to #9027.
Note that while #9027 is supposed to "only" revert #5754, the webagg backend was working even before #5754 was merged, so I guess something got broken during the revert.
tacaswell commentedon Oct 23, 2017
The issue is that #6370 fixed webagg for renamed files in #5754 but the reversion did not.
tacaswell commentedon Oct 23, 2017
PR coming shortly....got side-tracked by ipython/ipython#10867
FIX: move js files to expected location
anntzer commentedon Nov 1, 2017
closed by #9534, afaict