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

Class HasReprMimeMeta

IPython/core/tests/test_formatters.py:501–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499
500def test_repr_mime_meta():
501 class HasReprMimeMeta(object):
502 def _repr_mimebundle_(self, include=None, exclude=None):
503 data = {
504 'image/png': 'base64-image-data',
505 }
506 metadata = {
507 'image/png': {
508 'width': 5,
509 'height': 10,
510 }
511 }
512 return (data, metadata)
513
514 f = get_ipython().display_formatter
515 obj = HasReprMimeMeta()

Callers 1

test_repr_mime_metaFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_repr_mime_metaFunction · 0.68