This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / formatters / JavascriptFormatter

MetaHasTraits

IPython.core.formatters:JavascriptFormatter

source: /IPython/core/formatters.py:913

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