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

Skip to content

Commit 02fc261

Browse files
committed
Add comment
1 parent d770eb9 commit 02fc261

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,9 @@ def interactive(b):
11911191

11921192
def is_interactive():
11931193
'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".
11941197
b = rcParams['interactive'] and (
11951198
hasattr(sys, 'ps1') or sys.flags.interactive)
11961199
return b

0 commit comments

Comments
 (0)