From fb1c525ef4169aa3f8ef4be2aea85f1dd35d9f39 Mon Sep 17 00:00:00 2001 From: Dharanish Kedarisetti <9250188+kedarisetti@users.noreply.github.com> Date: Sat, 20 Feb 2021 10:31:47 -0500 Subject: [PATCH] passing the input params correctly for the from file method --- ipywidgets/widgets/widget_media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipywidgets/widgets/widget_media.py b/ipywidgets/widgets/widget_media.py index 563203d840..55b656b603 100644 --- a/ipywidgets/widgets/widget_media.py +++ b/ipywidgets/widgets/widget_media.py @@ -71,7 +71,7 @@ def from_url(cls, url, **kwargs): # If str, it needs to be encoded to bytes url = url.encode('utf-8') - return cls(value=url, format='url') + return cls(value=url, format='url', **kwargs) def set_value_from_file(self, filename): """