bundles / IPython 9.17.0 / IPython / core / formatters / JavascriptFormatter
MetaHasTraits
IPython.core.formatters:JavascriptFormatter
Signature
def JavascriptFormatter(**kwargs: t.Any) → NoneSummary
A Javascript formatter.
Extended Summary
To define the callables that compute the Javascript representation of your objects, define a _repr_javascript_ 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 valid Javascript code and should not be enclosed in `<script>` tags.
Aliases
IPython.core.formatters.JavascriptFormatter