From efec10e952bb625f78ba64a3b34997a07f114e81 2014-01-16 10:55:58 From: Jonathan Frederic Date: 2014-01-16 10:55:58 Subject: [PATCH] Register init_widget_js and remove cls parameter --- diff --git a/IPython/html/widgets/__init__.py b/IPython/html/widgets/__init__.py index 05ce809..af17d03 100644 --- a/IPython/html/widgets/__init__.py +++ b/IPython/html/widgets/__init__.py @@ -1,4 +1,4 @@ -from widget import Widget +from widget import Widget, init_widget_js from container import ContainerWidget from float_range import FloatRangeWidget diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 23793cc..bc9696b 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -13,7 +13,7 @@ from IPython.display import Javascript, display from IPython.utils.py3compat import string_types from IPython.utils.javascript import display_all_js -def init_widget_js(cls): +def init_widget_js(): path = os.path.split(os.path.abspath( __file__ ))[0] display_all_js(path) for root, dirs, files in os.walk(path):