``YouTubeVideo`` autoplay and the ability to add extra attributes to ``IFrame`` =============================================================================== You can add any extra attributes to the `` Related to the above, the ``YouTubeVideo`` class now takes an ``allow_autoplay`` flag, which sets up the iframe of the embedded YouTube video such that it allows autoplay. .. note:: Whether this works depends on the autoplay policy of the browser rendering the HTML allowing it. It also could get blocked by some browser extensions. Try it out! :: In [1]: from IPython.display import YouTubeVideo In [2]: YouTubeVideo("dQw4w9WgXcQ", allow_autoplay=True) 🙃