You are viewing an older version (9.3.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.3.0 / 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