Return a string showing the figure and connection status for the backend. This is intended as a diagnostic tool, and not for general use.
()
| 22 | |
| 23 | |
| 24 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…