How does jupyter show dataframe as html table ?

195 views
Skip to first unread message

Jeff Zhang

unread,
Dec 19, 2017, 9:13:55 PM12/19/17
to Project Jupyter
Just wondering how does jupyter do that ? Is there any display hook for that ? and how's that implemented. Thanks


Lawrence D’Oliveiro

unread,
Dec 20, 2017, 2:08:48 AM12/20/17
to Project Jupyter
On Wednesday, December 20, 2017 at 3:13:55 PM UTC+13, Jeff Zhang wrote:
Just wondering how does jupyter do that ?

Python code can format text output as HTML or Markdown, and can also output arbitrary PNG graphics and audio.

Examples here, API docs here.

Charles Forelle

unread,
Dec 20, 2017, 3:56:03 AM12/20/17
to jup...@googlegroups.com
The pandas DataFrame class defines a _repr_html_ method that returns an HTML string. 

On Wed, Dec 20, 2017 at 2:13 AM Jeff Zhang <zjf...@gmail.com> wrote:
Just wondering how does jupyter do that ? Is there any display hook for that ? and how's that implemented. Thanks


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c1139ebd-9f0c-463d-97bf-8b8ad25435c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Kluyver

unread,
Dec 20, 2017, 5:37:04 AM12/20/17
to Project Jupyter

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages