Skip to content

Commit fd9451c

Browse files
committed
Merge pull request matplotlib#3620 from mdboom/revert-interactive-change
MNT : Revert interactive determination
2 parents 86f9f9c + 061728a commit fd9451c

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
@@ -1291,12 +1291,7 @@ def interactive(b):
12911291

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

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

0 commit comments

Comments
 (0)