Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/source/config/integrating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ Special methods
Pretty printing
"""""""""""""""

Unlike the rich display hooks below, ``_repr_pretty_`` customizes plain-text output. It is
supported by the REPL, Notebook, and Qt Console; the table above shows which of the other
``_repr_*_`` hooks each interface supports.

To customize how your object is pretty-printed, add a ``_repr_pretty_`` method
to the class.
The method should accept a pretty printer, and a boolean that indicates whether
Expand All @@ -123,8 +127,8 @@ Here is an example::

For details on how to use the pretty printer, see :py:mod:`IPython.lib.pretty`.

More powerful methods
"""""""""""""""""""""
Rich display methods
""""""""""""""""""""

.. class:: MyObject

Expand Down
Loading