diff --git a/IPython/lib/display.py b/IPython/lib/display.py index 68f9f3e..19d4c35 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -323,7 +323,8 @@ class YouTubeVideo(IFrame): self.id=id src = "https://www.youtube.com/embed/{0}".format(id) if allow_autoplay: - kwargs.update(autoplay=1, extras=['allow="autoplay"']) + extras = list(kwargs.get("extras", [])) + ['allow="autoplay"'] + kwargs.update(autoplay=1, extras=extras) super(YouTubeVideo, self).__init__(src, width, height, **kwargs) def _repr_jpeg_(self):