From 20c97e0f87cb070d4565692175f4aa4ce4d1f9bf Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Tue, 5 Nov 2013 22:39:15 +0000 Subject: [PATCH] Use relative paths for widget js jquery imports --- IPython/html/widgets/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 3069afa9e..e60b39cda 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), exclude="text/plain")