### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10.1 documentation »
- The IPython API »

# excolors

## Module: `excolors`

Color schemes for exception handling code in IPython.

`IPython.excolors.``exception_colors`()

  Return a color table with fields for exception reporting.

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

  Examples:

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

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

### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10.1 documentation »
- The IPython API »