From 3f0f9d507593edbbb6348a05976faea5bef1ed22 2020-03-30 12:44:38 From: Matthieu Ancellin Date: 2020-03-30 12:44:38 Subject: [PATCH] Add option for video html display. --- diff --git a/IPython/core/display.py b/IPython/core/display.py index 3addc1d..507fd30 100644 --- a/IPython/core/display.py +++ b/IPython/core/display.py @@ -1308,7 +1308,7 @@ class Image(DisplayObject): class Video(DisplayObject): def __init__(self, data=None, url=None, filename=None, embed=False, - mimetype=None, width=None, height=None): + mimetype=None, width=None, height=None, html_attributes="controls"): """Create a video object given raw data or an URL. When this object is returned by an input cell or passed to the @@ -1346,6 +1346,11 @@ class Video(DisplayObject): height : int Height in pixels to which to constrain the video in html. If not supplied, defaults to the height of the video. + html_attributes : str + Attributes for the HTML `