%xmode in IPython: Shortening long Python tracebacks

%xmode in IPython: Shortening long Python tracebacks

Tired of super-long Python Pandas backtraces in Jupyter or IPython? Use the %xmode magic method:

%xmode Minimal

Now you just see the error, not 50 lines of library internals.

You can also set it to Plain, Context, or Verbose.