This documentation covers a development version of IPython. The development version may differ significantly from the latest stable release.


This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.

If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).

Module: core.excolors

Color schemes for exception handling code in IPython.

1 Function


Return a color table with fields for exception reporting.

The table is an instance of ColorSchemeTable with schemes added for ‘Neutral’, ‘Linux’, ‘LightBG’ and ‘NoColor’ and fields for exception handling filled in.


>>> ec = exception_colors()
>>> ec.active_scheme_name
>>> print(ec.active_colors)

Now we activate a color scheme: >>> ec.set_active_scheme(‘NoColor’) >>> ec.active_scheme_name ‘NoColor’ >>> sorted(ec.active_colors.keys()) [‘Normal’, ‘breakpoint_disabled’, ‘breakpoint_enabled’, ‘caret’, ‘em’, ‘excName’, ‘filename’, ‘filenameEm’, ‘line’, ‘lineno’, ‘linenoEm’, ‘name’, ‘nameEm’, ‘normalEm’, ‘prompt’, ‘topline’, ‘vName’, ‘val’, ‘valEm’]