This is a development version (9.14.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / core / ultratb / FormattedTB

class

IPython.core.ultratb:FormattedTB

source: /IPython/core/ultratb.py:1036

Signature

class FormattedTB(mode = Plain, theme_name = linux, call_pdb = False, ostream = None, tb_offset = 0, long_header = False, include_vars = False, check_cache = None, debugger_cls = None)

Members

Summary

Subclass ListTB but allow calling with a traceback.

Extended Summary

It can thus be used as a sys.excepthook for Python > 2.1.

Also adds 'Context' and 'Verbose' modes, not available in ListTB.

Allows a tb_offset to be specified. This is useful for situations where one needs to remove a number of topmost frames from the traceback (such as occurs with python programs that themselves execute other python code, like Python shells).

Aliases

  • IPython.core.ultratb.FormattedTB