File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 28
28
29
29
def connection_info ():
30
30
"""
31
- Return a string showing the figure and connection status for
32
- the backend. This is intended as a diagnostic tool, and not for general
33
- use.
31
+ Return a string showing the figure and connection status for the backend.
34
32
33
+ This is intended as a diagnostic tool, and not for general use.
35
34
"""
36
- result = []
37
- for manager in Gcf .get_all_fig_managers ():
38
- fig = manager .canvas .figure
39
- result .append ('{0} - {0}' .format ((fig .get_label () or
40
- "Figure {0}" .format (manager .num )),
41
- manager .web_sockets ))
35
+ result = [
36
+ '{fig} - {socket}' .format (
37
+ fig = (manager .canvas .figure .get_label ()
38
+ or "Figure {}" .format (manager .num )),
39
+ socket = manager .web_sockets )
40
+ for manager in Gcf .get_all_fig_managers ()
41
+ ]
42
42
if not is_interactive ():
43
- result .append ('Figures pending show: {0 }' .format (len (Gcf ._activeQue )))
43
+ result .append ('Figures pending show: {}' .format (len (Gcf ._activeQue )))
44
44
return '\n ' .join (result )
45
45
46
46
You can’t perform that action at this time.
0 commit comments