MCPcopy Index your code
hub / github.com/ipython/ipython / HasReprMimeMeta

Class HasReprMimeMeta

tests/test_formatters.py:561–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560def test_repr_mime_meta():
561 class HasReprMimeMeta(object):
562 def _repr_mimebundle_(self, include=None, exclude=None):
563 data = {
564 "image/png": "base64-image-data",
565 }
566 metadata = {
567 "image/png": {
568 "width": 5,
569 "height": 10,
570 }
571 }
572 return (data, metadata)
573
574 f = get_ipython().display_formatter
575 obj = HasReprMimeMeta()

Callers 1

test_repr_mime_metaFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_repr_mime_metaFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…