From edfef85296fdbf56810a1d26180850fed11998dd Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sat, 11 Jan 2020 23:38:11 -0500 Subject: [PATCH] FIX: add missing import from backend_agg closes #231 and https://github.com/matplotlib/matplotlib/issues/8291 --- ipykernel/pylab/backend_inline.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipykernel/pylab/backend_inline.py b/ipykernel/pylab/backend_inline.py index 273177ad6..b4d31077a 100644 --- a/ipykernel/pylab/backend_inline.py +++ b/ipykernel/pylab/backend_inline.py @@ -6,7 +6,11 @@ from __future__ import print_function import matplotlib -from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg # analysis: ignore +from matplotlib.backends.backend_agg import ( + new_figure_manager, + FigureCanvasAgg, + new_figure_manager_given_figure, +) # analysis: ignore from matplotlib import colors from matplotlib._pylab_helpers import Gcf