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

Method _data_and_metadata

IPython/core/display.py:645–650  ·  view source on GitHub ↗

shortcut for returning metadata with shape information, if defined

(self)

Source from the content-addressed store, hash-verified

643 pass
644
645 def _data_and_metadata(self):
646 """shortcut for returning metadata with shape information, if defined"""
647 if self.metadata:
648 return self.data, deepcopy(self.metadata)
649 else:
650 return self.data
651
652 def reload(self):
653 """Reload the raw data from file or URL."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected