{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / tbtools / TBTools / text

function

IPython.core.tbtools:TBTools.text

source: /dev/ipython/IPython/core/tbtools.py:556

Signature

def text(self, etype: type, value: BaseException | None, tb: TracebackType | None, tb_offset: int | None = None, context: int = 5) → str

Summary

Return formatted traceback.

Extended Summary

Subclasses may override this if they add extra arguments.

Aliases

  • IPython.core.doctb.TBTools.text