MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / connection_info

Function connection_info

lib/matplotlib/backends/backend_nbagg.py:24–39  ·  view source on GitHub ↗

Return a string showing the figure and connection status for the backend. This is intended as a diagnostic tool, and not for general use.

()

Source from the content-addressed store, hash-verified

22
23
24def connection_info():
25 """
26 Return a string showing the figure and connection status for the backend.
27
28 This is intended as a diagnostic tool, and not for general use.
29 """
30 result = [
31 '{fig} - {socket}'.format(
32 fig=(manager.canvas.figure.get_label()
33 or f"Figure {manager.num}"),
34 socket=manager.web_sockets)
35 for manager in Gcf.get_all_fig_managers()
36 ]
37 if not is_interactive():
38 result.append(f'Figures pending show: {len(Gcf.figs)}')
39 return '\n'.join(result)
40
41
42_FONT_AWESOME_CLASSES = { # font-awesome 4 names

Callers

nothing calls this directly

Calls 4

is_interactiveFunction · 0.90
get_all_fig_managersMethod · 0.80
joinMethod · 0.80
get_labelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…