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 21d3f58

Browse filesBrowse files
committed
MNT: suppress pending figure count in interactive
In interactive mode the number of pending figures will always be equal to the number of open figures. Only include this count in `connection_info` in non-interactive mode.
1 parent 2ca678c commit 21d3f58
Copy full SHA for 21d3f58

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-3
lines changed

‎lib/matplotlib/backends/backend_nbagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_nbagg.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ def connection_info():
7272
for manager in Gcf.get_all_fig_managers():
7373
fig = manager.canvas.figure
7474
result.append('{0} - {0}'.format((fig.get_label() or
75-
"Figure {0}".format(manager.num)),
76-
manager.web_sockets))
77-
result.append('Figures pending show: {0}'.format(len(Gcf._activeQue)))
75+
"Figure {0}".format(manager.num)),
76+
manager.web_sockets))
77+
if not is_interactive():
78+
result.append('Figures pending show: {0}'.format(len(Gcf._activeQue)))
7879
return '\n'.join(result)
7980

8081

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.