diff --git a/docs/source/whatsnew/pr/enable-to-add-extra-attrs-to-iframe.rst b/docs/source/whatsnew/pr/enable-to-add-extra-attrs-to-iframe.rst new file mode 100644 index 0000000..f4f3ad5 --- /dev/null +++ b/docs/source/whatsnew/pr/enable-to-add-extra-attrs-to-iframe.rst @@ -0,0 +1,37 @@ +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_()) + +