Skip to content

Commit 061728a

Browse files
committed
Revert interactive mode determination
1 parent 7e6be9d commit 061728a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/matplotlib/__init__.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1288,12 +1288,7 @@ def interactive(b):
12881288

12891289
def is_interactive():
12901290
'Return true if plot mode is interactive'
1291-
# ps1 exists if the python interpreter is running in an
1292-
# interactive console; sys.flags.interactive is true if a script
1293-
# is being run via "python -i".
1294-
b = rcParams['interactive'] and (
1295-
hasattr(sys, 'ps1') or sys.flags.interactive)
1296-
return b
1291+
return rcParams['interactive']
12971292

12981293
def tk_window_focus():
12991294
"""Return true if focus maintenance under TkAgg on win32 is on.

0 commit comments

Comments
 (0)