From 58ffdce299f28fc01e005fbd00d7981e005ab09c 2014-01-16 10:56:01 From: Jonathan Frederic Date: 2014-01-16 10:56:01 Subject: [PATCH] Actual absolute paths... --- diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index cb6f68a..33ad1ee 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -35,7 +35,7 @@ def init_widget_js(): name = filename.rsplit('.', 1)[0] if not (name == 'widget' or name == '__init__') and name.startswith('widget_'): # Remove 'widget_' from the start of the name before compiling the path. - js_path = 'static/notebook/js/widgets/%s.js' % name[7:] + js_path = '/static/notebook/js/widgets/%s.js' % name[7:] display(Javascript(data='$.getScript("%s");' % js_path))