kernel.core.traceback_trap

Module: kernel.core.traceback_trap

Inheritance diagram for IPython.kernel.core.traceback_trap:

Object to manage sys.excepthook().

TracebackTrap

class IPython.kernel.core.traceback_trap.TracebackTrap(formatters=None)

Bases: object

Object to trap and format tracebacks.

__init__(formatters=None)
add_to_message(message)

Add the formatted display of the traceback to the message dictionary being returned from the interpreter to its listeners.

Parameters:message : dict
clear()
Remove the stored traceback.
hook(*args)
This method actually implements the hook.
set()
Set the hook.
unset()
Unset the hook.