def _reshow_nbagg_figure(fig):
 try:
  reshow = fig.canvas.manager.reshow
 except AttributeError:
  raise NotImplementedError()
 else:
  reshow()

def _reshow_nbagg_figure ( fig ) : try : reshow = fig . canvas . manager . reshow except AttributeError : raise NotImplementedError ( ) else : reshow ( )
reshow an nbagg figure .