MCPcopy Create free account
hub / github.com/ipython/ipython / __html__

Method __html__

IPython/core/display.py:723–729  ·  view source on GitHub ↗

This method exists to inform other HTML-using modules (e.g. Markupsafe, htmltag, etc) that this object is HTML and does not need things like special characters (<>&) escaped.

(self)

Source from the content-addressed store, hash-verified

721 return self._data_and_metadata()
722
723 def __html__(self):
724 """
725 This method exists to inform other HTML-using modules (e.g. Markupsafe,
726 htmltag, etc) that this object is HTML and does not need things like
727 special characters (<>&) escaped.
728 """
729 return self._repr_html_()
730
731
732class Markdown(TextDisplayObject):

Callers

nothing calls this directly

Calls 1

_repr_html_Method · 0.95

Tested by

no test coverage detected