How to pretty print object representation in IPython
<p>IPython outputs list representation in a pretty way by default:</p>

<pre><code>In [1]: test_list
Out[1]: [&lt;object_1&gt;,
         &lt;object_2&gt;,
         &lt;object_3&gt;]
</code></pre>

<p>I have object like:</p>

<pre><code>class TestObject(object):
    def __init__(self):
        self._list = [&lt;object_1&gt;, &lt;object_2&gt;, &lt;object_3&gt;]

    def __repr__(self):
        return self._list.__repr__()

test_object = Test()
</code></pre>

<p>And IPython representation of this is:</p>

<pre><code>In [2]: test_list
Out[2]: [&lt;object_1&gt;, &lt;object_2&gt;, &lt;object_3&gt;]
</code></pre>

<p>Is there a way to get list's way of the representation for my object?</p>