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=None, formatters=None, raiseException=True)
sync_formatter: Callable to display the traceback. formatters: A list of formatters to apply.
hook(*args)
This method actually implements the hook.