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.
1 parent d770eb9 commit 02fc261Copy full SHA for 02fc261
1 file changed
lib/matplotlib/__init__.py
@@ -1191,6 +1191,9 @@ def interactive(b):
1191
1192
def is_interactive():
1193
'Return true if plot mode is interactive'
1194
+ # ps1 exists if the python interpreter is running in an
1195
+ # interactive console; sys.flags.interactive is true if a script
1196
+ # is being run via "python -i".
1197
b = rcParams['interactive'] and (
1198
hasattr(sys, 'ps1') or sys.flags.interactive)
1199
return b
0 commit comments