Closed
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 excerpt:
.../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
Matplotlib version
- Operating system: Mac OS 10.12.6
- Matplotlib version: 2.1.0
- Matplotlib backend (
print(matplotlib.get_backend())
): WebAgg - Python version: Python 3.6.2
- Jupyter version (if applicable): -
- Other libraries:
I installed matplotlib via pip.