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

Method _repr_mimebundle_

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

Source from the content-addressed store, hash-verified

438def test_repr_mime():
439 class HasReprMime(object):
440 def _repr_mimebundle_(self, include=None, exclude=None):
441 return {
442 'application/json+test.v2': {
443 'x': 'y'
444 },
445 'plain/text' : '<HasReprMime>',
446 'image/png' : 'i-overwrite'
447 }
448
449 def _repr_png_(self):
450 return 'should-be-overwritten'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected