##// END OF EJS Templates
Backport PR #13235: Update what's of of older IPython (forgotten)
Matthias Bussonnier -
Show More
@@ -80,6 +80,49 b' New Features:'
80 - Reword the YouTubeVideo autoplay WN :ghpull:`13147`
80 - Reword the YouTubeVideo autoplay WN :ghpull:`13147`
81
81
82
82
83 Highlighted features
84 --------------------
85
86
87 ``YouTubeVideo`` autoplay and the ability to add extra attributes to ``IFrame``
88 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89
90 You can add any extra attributes to the ``<iframe>`` tag using the new
91 ``extras`` argument in the ``IFrame`` class. For example::
92
93 In [1]: from IPython.display import IFrame
94
95 In [2]: IFrame(src="src", width=300, height=300, extras=['loading="eager"'])
96
97 The above cells will result in the following HTML code being displayed in a
98 notebook::
99
100 <iframe
101 width="300"
102 height="300"
103 src="src"
104 frameborder="0"
105 allowfullscreen
106 loading="eager"
107 ></iframe>
108
109 Related to the above, the ``YouTubeVideo`` class now takes an
110 ``allow_autoplay`` flag, which sets up the iframe of the embedded YouTube video
111 such that it allows autoplay.
112
113 .. note::
114 Whether this works depends on the autoplay policy of the browser rendering
115 the HTML allowing it. It also could get blocked by some browser extensions.
116
117 Try it out!
118 ::
119
120 In [1]: from IPython.display import YouTubeVideo
121
122 In [2]: YouTubeVideo("dQw4w9WgXcQ", allow_autoplay=True)
123
124
125
83 Thanks
126 Thanks
84 ------
127 ------
85
128
@@ -137,6 +180,16 b' Of particular interest are the following Pull-requests:'
137 :ghpull:`13056`
180 :ghpull:`13056`
138 - Make Ipython.utils.timing work with jupyterlite :ghpull:`13050`.
181 - Make Ipython.utils.timing work with jupyterlite :ghpull:`13050`.
139
182
183 Pastebin magic expiry days option
184 ---------------------------------
185
186 The Pastebin magic now has ``-e`` option to determine
187 the number of days for paste expiration. For example
188 the paste that created with ``%pastebin -e 20 1`` magic will
189 be available for next 20 days.
190
191
192
140
193
141
194
142 Thanks
195 Thanks
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now