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

Method _repr_jpeg_

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

Source from the content-addressed store, hash-verified

310 super(YouTubeVideo, self).__init__(src, width, height, **kwargs)
311
312 def _repr_jpeg_(self):
313 # Deferred import
314 from urllib.request import urlopen
315
316 try:
317 return urlopen("https://img.youtube.com/vi/{id}/hqdefault.jpg".format(id=self.id)).read()
318 except IOError:
319 return None
320
321class VimeoVideo(IFrame):
322 """

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected