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

Method _repr_json_

IPython/core/tests/test_formatters.py:428–429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

426def test_json_as_string_deprecated():
427 class JSONString(object):
428 def _repr_json_(self):
429 return '{}'
430
431 f = JSONFormatter()
432 with warnings.catch_warnings(record=True) as w:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected