def clear_post_mortem():
 if IS_IPYKERNEL:
  from IPython.core.getipython import get_ipython
  ipython_shell = get_ipython()
  if ipython_shell:
   ipython_shell.set_custom_exc((), None)
 else:
  sys.excepthook = sys.__excepthook__

def clear_post_mortem ( ) : if IS_IPYKERNEL : from IPython . core . getipython import get_ipython ipython_shell = get_ipython ( ) if ipython_shell : ipython_shell . set_custom_exc ( ( ) , None ) else : sys . excepthook = sys . __excepthook__
remove the post mortem excepthook and replace with a standard one .