Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86f9f9c + 061728a commit fd9451cCopy full SHA for fd9451c
1 file changed
lib/matplotlib/__init__.py
@@ -1291,12 +1291,7 @@ def interactive(b):
1291
1292
def is_interactive():
1293
'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
+ return rcParams['interactive']
1300
1301
def tk_window_focus():
1302
"""Return true if focus maintenance under TkAgg on win32 is on.
0 commit comments