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 4
4
# that changes made maintain expected behaviour.
5
5
6
6
from base64 import b64encode
7
- from contextlib import contextmanager
8
7
import json
9
8
import io
10
9
import os
18
17
19
18
from matplotlib import rcParams
20
19
from matplotlib .figure import Figure
21
- from matplotlib . backends import backend_agg
20
+ from matplotlib import is_interactive
22
21
from matplotlib .backends .backend_webagg_core import (FigureManagerWebAgg ,
23
22
FigureCanvasWebAggCore ,
24
23
NavigationToolbar2WebAgg )
29
28
class Show (ShowBase ):
30
29
def __call__ (self , block = None ):
31
30
from matplotlib ._pylab_helpers import Gcf
32
- from matplotlib import is_interactive
33
31
34
32
managers = Gcf .get_all_fig_managers ()
35
33
if not managers :
@@ -54,7 +52,6 @@ def __call__(self, block=None):
54
52
55
53
56
54
def draw_if_interactive ():
57
- from matplotlib import is_interactive
58
55
import matplotlib ._pylab_helpers as pylab_helpers
59
56
60
57
if is_interactive ():
You can’t perform that action at this time.
0 commit comments