def connection_info():
 from matplotlib._pylab_helpers import Gcf
 result = []
 for manager in Gcf.get_all_fig_managers():
  fig = manager.canvas.figure
  result.append('{0} - {0}'.format((fig.get_label() or 'Figure {0}'.format(manager.num)), manager.web_sockets))
 if (not is_interactive()):
  result.append('Figures pending show: {0}'.format(len(Gcf._activeQue)))
 return '\n'.join(result)

def connection_info ( ) : from matplotlib . _pylab_helpers import Gcf result = [ ] for manager in Gcf . get_all_fig_managers ( ) : fig = manager . canvas . figure result . append ( '{0} - {0}' . format ( ( fig . get_label ( ) or 'Figure {0}' . format ( manager . num ) ) , manager . web_sockets ) ) if ( not is_interactive ( ) ) : result . append ( 'Figures pending show: {0}' . format ( len ( Gcf . _activeQue ) ) ) return '\n' . join ( result )
return a string showing the figure and connection status for the backend .