Enable to add extra attributes to iframe ======================================== You can add any extra attributes to the `` Using it, you can autoplay ``YouTubeVideo`` by adding ``'allow="autoplay"'``, even in browsers that disable it by default, such as Google Chrome. And, you can write it more briefly by using the argument ``allow_autoplay``. :: In [1]: from IPython.display import YouTubeVideo In [2]: print(YouTubeVideo("video-id", allow_autoplay=True)._repr_html_())