kernel.core.traceback_trap — IPython 0.10.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »

# 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.

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »