bundles / IPython latest / IPython / core / formatters / HTMLFormatter
MetaHasTraits
IPython.core.formatters:HTMLFormatter
source: /IPython/core/formatters.py :775
Signature
def HTMLFormatter ( ** kwargs : t.Any ) → None Summary
An HTML formatter.
Extended Summary
To define the callables that compute the HTML representation of your objects, define a _repr_html_ method or use the for_type or for_type_by_name methods to register functions that handle this.
The return value of this formatter should be a valid HTML snippet that could be injected into an existing DOM. It should not include the `<html> or `<body> tags.
Aliases
-
IPython.core.formatters.HTMLFormatter