Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d770eb9

Browse files
committed
Consider ourselves interactive if sys.flags.interactive is set.
1 parent 170de26 commit d770eb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,8 @@ def interactive(b):
11911191

11921192
def is_interactive():
11931193
'Return true if plot mode is interactive'
1194-
b = rcParams['interactive'] and hasattr(sys, 'ps1')
1194+
b = rcParams['interactive'] and (
1195+
hasattr(sys, 'ps1') or sys.flags.interactive)
11951196
return b
11961197

11971198
def tk_window_focus():

0 commit comments

Comments
 (0)