bundles / IPython 9.3.0 / IPython / core / formatters / JavascriptFormatter
MetaHasTraits
IPython.core.formatters:JavascriptFormatter
source: /IPython/core/formatters.py :914
Signature
def JavascriptFormatter ( ** kwargs : t.Any ) → None Summary
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