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

Method _repr_mimebundle_

IPython/core/tests/test_formatters.py:483–489  ·  view source on GitHub ↗
(self, include, exclude, **kwargs)

Source from the content-addressed store, hash-verified

481 self.exclude = exclude
482
483 def _repr_mimebundle_(self, include, exclude, **kwargs):
484 if include and (include != self.include):
485 raise ValueError('include got modified: display() may be broken.')
486 if exclude and (exclude != self.exclude):
487 raise ValueError('exclude got modified: display() may be broken.')
488
489 return None
490
491 include = {'a', 'b', 'c'}
492 exclude = {'c', 'e' , 'f'}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected