Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML not rendering properly with Canopy 1.7.1.3323 / IPython 4.1.2

I've just upgraded to Canopy 1.7.1; I think this problem stems from the change in IPython version from 2.4.1 to 4.1.2.

The issue I have is that calling a DataFrame object in Python seems to use the __print__ method, i.e. there's no difference between typing print df and df into the interpreter, and unfortunately this gives me an all-text output rather than the nice tables I normally get.

So I get something that looks exactly like this when I call df rather than a table:

           date  flag
1      20151102     0
98663  20151101     1

This happened immediately after the upgrade, and I also tried updating all my packages. I've also looked at this and this, but none of the solutions there work for me. ('display.notebook_repr_html' is already True)

EDIT: The issue seems to do with rendering HTML; typing in

from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))

returns

<IPython.core.display.HTML object>
like image 976
Ken Wei Avatar asked May 05 '16 03:05

Ken Wei


1 Answers

This has purposely been disabled. I have requested a way to have it re-enabled but but unsupported.

Please see the request. https://github.com/jupyter/qtconsole/issues/165

like image 100
Keith Avatar answered Nov 16 '22 13:11

Keith