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

bundles / IPython 9.3.0 / IPython / core / doctb / DocTB / __init__

function

IPython.core.doctb:DocTB.__init__

source: /IPython/core/doctb.py :99

Signature

def   __init__ ( self theme_name : str = linux call_pdb : bool = False ostream : Any = None tb_offset : int = 0 long_header : bool = False include_vars : bool = True check_cache : Callable[[], None] | None = None debugger_cls : type | None = None )

Summary

Specify traceback offset, headers and color scheme.

Extended Summary

Define how many frames to drop from the tracebacks. Calling it with tb_offset=1 allows use of this handler in interpreters which will have their own code at the top of the traceback (VerboseTB will first remove that frame before printing the traceback info).

Aliases

  • IPython.core.doctb.DocTB.__init__