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

Method _data_and_metadata

IPython/lib/display.py:202–210  ·  view source on GitHub ↗

shortcut for returning metadata with url information, if defined

(self)

Source from the content-addressed store, hash-verified

200 return max_abs_value if normalize else 1
201
202 def _data_and_metadata(self):
203 """shortcut for returning metadata with url information, if defined"""
204 md = {}
205 if self.url:
206 md['url'] = self.url
207 if md:
208 return self.data, md
209 else:
210 return self.data
211
212 def _repr_html_(self):
213 src = """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected