Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02fc261

Browse filesBrowse files
committed
Add comment
1 parent d770eb9 commit 02fc261
Copy full SHA for 02fc261

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.