def uninstall_repl_displayhook():
 global _IP_REGISTERED
 global _INSTALL_FIG_OBSERVER
 if _IP_REGISTERED:
  from IPython import get_ipython
  ip = get_ipython()
  try:
   ip.events.unregister(u'post_execute', _IP_REGISTERED)
  except AttributeError:
   raise NotImplementedError(u'Can not unregister events in IPython < 2.0')
  _IP_REGISTERED = None
 if _INSTALL_FIG_OBSERVER:
  _INSTALL_FIG_OBSERVER = False

def uninstall_repl_displayhook ( ) : global _IP_REGISTERED global _INSTALL_FIG_OBSERVER if _IP_REGISTERED : from IPython import get_ipython ip = get_ipython ( ) try : ip . events . unregister ( u'post_execute' , _IP_REGISTERED ) except AttributeError : raise NotImplementedError ( u'Can not unregister events in IPython < 2.0' ) _IP_REGISTERED = None if _INSTALL_FIG_OBSERVER : _INSTALL_FIG_OBSERVER = False
uninstalls the matplotlib display hook .