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

bundles / IPython latest / IPython / core / ultratb / AutoFormattedTB

class

IPython.core.ultratb:AutoFormattedTB

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

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