kernel.core.display_formatter — IPython 0.10.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 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

  `identifier` = None
  `kind` = 'display'

### `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

  `identifier` = 'pprint'

### `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

  `identifier` = 'repr'

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »