Commit f7718d7d authored by Romain Casati's avatar Romain Casati
Browse files

Adding HTML support to IPython.display.

parent acf9d2d8
import pyodide
__all__ = ["display", "display_image"]
__all__ = ["display", "display_image", "HTML"]
display = pyodide.Basthon.basthon_internal.display
display_image = pyodide.Basthon.basthon_internal.display_image
def HTML(html):
""" Sending html string to IPython notebook. """
def _repr_html_():
return html
dummy = type('HTML', (), {})()
dummy._repr_html_ = _repr_html_
return display(dummy)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment