Skip to content

Commit fb1c525

Browse files
committed
passing the input params correctly for the from file method
1 parent 90c1c14 commit fb1c525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipywidgets/widgets/widget_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def from_url(cls, url, **kwargs):
7171
# If str, it needs to be encoded to bytes
7272
url = url.encode('utf-8')
7373

74-
return cls(value=url, format='url')
74+
return cls(value=url, format='url', **kwargs)
7575

7676
def set_value_from_file(self, filename):
7777
"""

0 commit comments

Comments
 (0)