MCPcopy Create free account
hub / github.com/ipython/ipython / display_json

Function display_json

IPython/core/display.py:519–535  ·  view source on GitHub ↗

Display the JSON representation of an object. Note that not many frontends support displaying JSON. Parameters ---------- objs : tuple of objects The Python objects to display, or if raw=True raw json data to display. raw : bool Are the data objects raw

(*objs, **kwargs)

Source from the content-addressed store, hash-verified

517
518
519def display_json(*objs, **kwargs):
520 """Display the JSON representation of an object.
521
522 Note that not many frontends support displaying JSON.
523
524 Parameters
525 ----------
526 objs : tuple of objects
527 The Python objects to display, or if raw=True raw json data to
528 display.
529 raw : bool
530 Are the data objects raw data or Python objects that need to be
531 formatted before display? [default: False]
532 metadata : dict (optional)
533 Metadata to be associated with the specific mimetype output.
534 """
535 _display_mimetype('application/json', objs, **kwargs)
536
537
538def display_javascript(*objs, **kwargs):

Callers

nothing calls this directly

Calls 1

_display_mimetypeFunction · 0.85

Tested by

no test coverage detected