You are viewing an older version (9.3.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.3.0 / IPython / core / ultratb / AutoFormattedTB

class

IPython.core.ultratb:AutoFormattedTB

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

Signature

class AutoFormattedTB(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

A traceback printer which can be called on the fly.

Extended Summary

It will find out about exceptions by itself.

A brief example

AutoTB = AutoFormattedTB(mode = 'Verbose', theme_name='linux')
try:
  ...
except:
  AutoTB()  # or AutoTB(out=logfile) where logfile is an open file object

Aliases

  • IPython.core.ultratb.AutoFormattedTB