File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 44# that changes made maintain expected behaviour.
55
66from base64 import b64encode
7- from contextlib import contextmanager
87import json
98import io
109import os
1817
1918from matplotlib import rcParams
2019from matplotlib .figure import Figure
21- from matplotlib . backends import backend_agg
20+ from matplotlib import is_interactive
2221from matplotlib .backends .backend_webagg_core import (FigureManagerWebAgg ,
2322 FigureCanvasWebAggCore ,
2423 NavigationToolbar2WebAgg )
2928class Show (ShowBase ):
3029 def __call__ (self , block = None ):
3130 from matplotlib ._pylab_helpers import Gcf
32- from matplotlib import is_interactive
3331
3432 managers = Gcf .get_all_fig_managers ()
3533 if not managers :
@@ -54,7 +52,6 @@ def __call__(self, block=None):
5452
5553
5654def draw_if_interactive ():
57- from matplotlib import is_interactive
5855 import matplotlib ._pylab_helpers as pylab_helpers
5956
6057 if is_interactive ():
You can’t perform that action at this time.
0 commit comments