[IPython-dev] HTML pandas issue (followup of twitter question)

Adam Hughes hughesadam87 at gmail.com
Tue Jul 29 14:28:53 EDT 2014

I'm sorry you're right thomas.  I didn't mean print; I meant if I leave it
as the last statement in a cell.  IE




In this case, it still just prints plain text for myobject.  The only print
method that myobject specifically overloads is:

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

Since otherwise it would default to python objects' print statements.
 Could this be the problem?  I can try to make a self-contained
reproducible example if you think this is a bug of sorts.

On Tue, Jul 29, 2014 at 1:26 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 29 July 2014 10:22, Adam Hughes <hughesadam87 at gmail.com> wrote:
>> The difference is, if I do "print obj.df", I get the nice html output by
>> default.
> That's strange - print should only ever give you the plain string
> representation. If you just put 'obj.df' or 'obj' on a line by itself at
> the end of the cell, *without* print, it should display HTML reprs.
> If you want to display more than one thing per cell, then
> IPython.display.display(obj) is the rich-repr equivalent of print.
> Thomas
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140729/c596c51c/attachment.html>

More information about the IPython-dev mailing list