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

bundles / IPython 9.3.0 / IPython / core / interactiveshell / InteractiveShell / showtraceback

function

IPython.core.interactiveshell:InteractiveShell.showtraceback

source: /IPython/core/interactiveshell.py :2125

Signature

def   showtraceback ( self exc_tuple = None filename = None tb_offset = None exception_only = False running_compiled_code = False )

Summary

Display the exception that just occurred.

Extended Summary

If nothing is known about the exception, this is the method which should be used throughout the code for presenting user tracebacks, rather than directly invoking the InteractiveTB object.

A specific showsyntaxerror() also exists, but this method can take care of calling it if needed, so unless you are explicitly catching a SyntaxError exception, don't try to analyze the stack manually and simply call this method.

Aliases

  • IPython.InteractiveShell.showtraceback