### Navigation

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

# kernel.core.sync_traceback_trap

## Module: `kernel.core.sync_traceback_trap`

Inheritance diagram for `IPython.kernel.core.sync_traceback_trap`:

Object to manage sys.excepthook().

Synchronous version: prints errors when called.

## `SyncTracebackTrap`

class `IPython.kernel.core.sync_traceback_trap.``SyncTracebackTrap`(sync_formatter=None, formatters=None, raiseException=True)

  Bases: `IPython.kernel.core.traceback_trap.TracebackTrap`

  TracebackTrap that displays immediatly the traceback in addition to capturing it. Useful in frontends, as without this traceback trap, some tracebacks never get displayed.

  `__init__`()

    sync_formatter: Callable to display the traceback. formatters: A list of formatters to apply.

  `hook`()

    This method actually implements the hook.

### Navigation

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