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__()
add_to_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()

This method actually implements the hook.

set()

Set the hook.

unset()

Unset the hook.

Table Of Contents

Previous topic

kernel.core.traceback_formatter

Next topic

kernel.core.util

This Page