From d095aa8941d3c2cb2e0f0ce8145d1952ac5a0aee 2015-12-21 11:02:29 From: Ben Kasel Date: 2015-12-21 11:02:29 Subject: [PATCH] - Changed the YouTubeVideo jpeg picture to high quality --- diff --git a/IPython/lib/display.py b/IPython/lib/display.py index e46e254..4cdedc4 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -264,7 +264,7 @@ class YouTubeVideo(IFrame): def _repr_jpeg_(self): from urllib import urlopen - return urlopen("https://img.youtube.com/vi/{id}/default.jpg".format(id=self.id)).read() + return urlopen("https://img.youtube.com/vi/{id}/hqdefault.jpg".format(id=self.id)).read() class VimeoVideo(IFrame): """