Show More
@@ -1,10 +1,10 b'' | |||
|
1 |
from |
|
|
1 | from widget import Widget, init_widget_js | |
|
2 | 2 | |
|
3 | from bool import BoolWidget | |
|
4 | from container import ContainerWidget | |
|
5 | from float import FloatWidget | |
|
6 | from float_range import FloatRangeWidget | |
|
7 | from int import IntWidget | |
|
8 | from int_range import IntRangeWidget | |
|
9 | from selection import SelectionWidget | |
|
10 | from string import StringWidget | |
|
3 | from widget_bool import BoolWidget | |
|
4 | from widget_container import ContainerWidget | |
|
5 | from widget_float import FloatWidget | |
|
6 | from widget_float_range import FloatRangeWidget | |
|
7 | from widget_int import IntWidget | |
|
8 | from widget_int_range import IntRangeWidget | |
|
9 | from widget_selection import SelectionWidget | |
|
10 | from widget_string import StringWidget |
@@ -16,8 +16,9 b' def init_widget_js():' | |||
|
16 | 16 | for filepath in glob(os.path.join(path, "*.py")): |
|
17 | 17 | filename = os.path.split(filepath)[1] |
|
18 | 18 | name = filename.rsplit('.', 1)[0] |
|
19 |
if not (name == ' |
|
|
20 | js_path = 'static/notebook/js/widgets/%s.js' % name | |
|
19 | if not (name == 'widget' or name == '__init__') and name.startswith('widget_'): | |
|
20 | # Remove 'widget_' from the start of the name before compiling the path. | |
|
21 | js_path = 'static/notebook/js/widgets/%s.js' % name[7:] | |
|
21 | 22 | display(Javascript(data='$.getScript("%s");' % js_path)) |
|
22 | 23 | |
|
23 | 24 |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/bool.py to IPython/html/widgets/widget_bool.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/container.py to IPython/html/widgets/widget_container.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/float.py to IPython/html/widgets/widget_float.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/float_range.py to IPython/html/widgets/widget_float_range.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/int.py to IPython/html/widgets/widget_int.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/int_range.py to IPython/html/widgets/widget_int_range.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/selection.py to IPython/html/widgets/widget_selection.py |
|
1 | NO CONTENT: file renamed from IPython/html/widgets/string.py to IPython/html/widgets/widget_string.py |
General Comments 0
You need to be logged in to leave comments.
Login now