From b7e2c5a885f7f58a865888353caa3efb4c36b116 2021-09-21 00:38:42 From: yuji96 Date: 2021-09-21 00:38:42 Subject: [PATCH] add docs: whats new entry --- 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_()) + +