### Navigation

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

# kernel.core.display_formatter

## Module: `kernel.core.display_formatter`

Inheritance diagram for `IPython.kernel.core.display_formatter`:

Objects for replacing sys.displayhook().

## Classes

### `IDisplayFormatter`

class `IPython.kernel.core.display_formatter.``IDisplayFormatter`

  Bases: `object`

  Objects conforming to this interface will be responsible for formatting representations of objects that pass through sys.displayhook() during an interactive interpreter session.

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

### `PPrintDisplayFormatter`

class `IPython.kernel.core.display_formatter.``PPrintDisplayFormatter`

  Bases: `IPython.kernel.core.display_formatter.IDisplayFormatter`

  Return a pretty-printed string representation of an object.

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

### `ReprDisplayFormatter`

class `IPython.kernel.core.display_formatter.``ReprDisplayFormatter`

  Bases: `IPython.kernel.core.display_formatter.IDisplayFormatter`

  Return the repr() string representation of an object.

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

### Navigation

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