MCPcopy Index your code
hub / github.com/ipython/ipython / text

Method text

IPython/core/tbtools.py:528–541  ·  view source on GitHub ↗

Return formatted traceback. Subclasses may override this if they add extra arguments.

(
        self,
        etype: type,
        value: BaseException | None,
        tb: TracebackType | None,
        tb_offset: Optional[int] = None,
        context: int = 5,
    )

Source from the content-addressed store, hash-verified

526 return "\n".join(stb)
527
528 def text(
529 self,
530 etype: type,
531 value: BaseException | None,
532 tb: TracebackType | None,
533 tb_offset: Optional[int] = None,
534 context: int = 5,
535 ) -> str:
536 """Return formatted traceback.
537
538 Subclasses may override this if they add extra arguments.
539 """
540 tb_list = self.structured_traceback(etype, value, tb, tb_offset, context)
541 return self.stb2text(tb_list)
542
543 def structured_traceback(
544 self,

Callers 15

__call__Method · 0.45
handlerMethod · 0.45
__call__Method · 0.45
handlerMethod · 0.45
_repr_pretty_Method · 0.45
__call__Method · 0.45
_repr_pretty_Method · 0.45
_repr_pretty_Method · 0.45
_repr_pretty_Method · 0.45
foo_printerFunction · 0.45
_repr_pretty_Method · 0.45

Calls 2

structured_tracebackMethod · 0.95
stb2textMethod · 0.95

Tested by 6

_repr_pretty_Method · 0.36
foo_printerFunction · 0.36
_repr_pretty_Method · 0.36
_repr_pretty_Method · 0.36
_repr_pretty_Method · 0.36
_repr_pretty_Method · 0.36