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

bundles / IPython 9.12.0 / IPython / core / magics / basic / BasicMagics / xmode

function

IPython.core.magics.basic:BasicMagics.xmode

source: /IPython/core/magics/basic.py :343

Signature

def   xmode ( self parameter_s = '' )

Summary

Switch modes for the exception handlers.

Extended Summary

Valid modes: Plain, Context, Verbose, Minimal, and Docs.

  • Plain: similar to Python's default traceback.

  • Context: shows several lines of surrounding context for each frame in the traceback.

  • Verbose: like Context, but also displays local variable values in each frame.

  • Minimal: shows only the exception type and message, without a traceback.

  • Docs: a stripped-down version of Verbose, designed for use when running doctests.

If called without arguments, cycles through the available modes.

When in verbose mode the value --show (and --hide) will respectively show (or hide) frames with __tracebackhide__ = True value set.

Aliases

  • IPython.core.magics.BasicMagics.xmode