Module:core.doctb
1 Class
- classIPython.core.doctb.DocTB(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)
Bases:
TBToolsA stripped down version of Verbose TB, simplified to not have too much information whenrunning doctests
- __init__(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)
Specify traceback offset, headers and color scheme.
Define how many frames to drop from the tracebacks. Calling it withtb_offset=1 allows use of this handler in interpreters which will havetheir own code at the top of the traceback (VerboseTB will firstremove that frame before printing the traceback info).