MCPcopy Create free account
hub / github.com/ipython/ipython / _showtraceback

Method _showtraceback

IPython/core/interactiveshell.py:2061–2067  ·  view source on GitHub ↗

Actually show a traceback. Subclasses may override this method to put the traceback on a different place, like a side channel.

(self, etype, evalue, stb)

Source from the content-addressed store, hash-verified

2059 print('\n' + self.get_exception_only(), file=sys.stderr)
2060
2061 def _showtraceback(self, etype, evalue, stb):
2062 """Actually show a traceback.
2063
2064 Subclasses may override this method to put the traceback on a different
2065 place, like a side channel.
2066 """
2067 print(self.InteractiveTB.stb2text(stb))
2068
2069 def showsyntaxerror(self, filename=None, running_compiled_code=False):
2070 """Display the syntax error that just occurred.

Callers 2

showtracebackMethod · 0.95
showsyntaxerrorMethod · 0.95

Calls 1

stb2textMethod · 0.45

Tested by

no test coverage detected