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

Method _repr_html_

IPython/lib/display.py:212–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 return self.data
211
212 def _repr_html_(self):
213 src = """
214 <audio {element_id} controls="controls" {autoplay}>
215 <source src="{src}" type="{type}" />
216 Your browser does not support the audio element.
217 </audio>
218 """
219 return src.format(src=self.src_attr(), type=self.mimetype, autoplay=self.autoplay_attr(),
220 element_id=self.element_id_attr())
221
222 def src_attr(self):
223 import base64

Callers

nothing calls this directly

Calls 4

src_attrMethod · 0.95
autoplay_attrMethod · 0.95
element_id_attrMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected