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

Method _repr_mimebundle_

IPython/core/tests/test_formatters.py:502–512  ·  view source on GitHub ↗
(self, include=None, exclude=None)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected