Show More
@@ -120,7 +120,7 b'' | |||||
120 | "metadata": {}, |
|
120 | "metadata": {}, | |
121 | "source": [ |
|
121 | "source": [ | |
122 | "In the IPython notebook [require.js](http://requirejs.org/) is used to load JavaScript dependencies.\n", |
|
122 | "In the IPython notebook [require.js](http://requirejs.org/) is used to load JavaScript dependencies.\n", | |
123 |
"All IPython widget code depends on ` |
|
123 | "All IPython widget code depends on `widgets/js/widget.js`,\n", | |
124 | "where the base widget model and base view are defined.\n", |
|
124 | "where the base widget model and base view are defined.\n", | |
125 | "We use require.js to load this file:" |
|
125 | "We use require.js to load this file:" | |
126 | ] |
|
126 | ] | |
@@ -131,7 +131,7 b'' | |||||
131 | "input": [ |
|
131 | "input": [ | |
132 | "%%javascript\n", |
|
132 | "%%javascript\n", | |
133 | "\n", |
|
133 | "\n", | |
134 |
"require([\" |
|
134 | "require([\"widgets/js/widget\"], function(WidgetManager){\n", | |
135 | "\n", |
|
135 | "\n", | |
136 | "});" |
|
136 | "});" | |
137 | ], |
|
137 | ], | |
@@ -174,7 +174,7 b'' | |||||
174 | "input": [ |
|
174 | "input": [ | |
175 | "%%javascript\n", |
|
175 | "%%javascript\n", | |
176 | "\n", |
|
176 | "\n", | |
177 |
"require([\" |
|
177 | "require([\"widgets/js/widget\"], function(WidgetManager){\n", | |
178 | " \n", |
|
178 | " \n", | |
179 | " // Define the DatePickerView\n", |
|
179 | " // Define the DatePickerView\n", | |
180 | " var DatePickerView = IPython.DOMWidgetView.extend({\n", |
|
180 | " var DatePickerView = IPython.DOMWidgetView.extend({\n", | |
@@ -446,7 +446,7 b'' | |||||
446 | "%%javascript\n", |
|
446 | "%%javascript\n", | |
447 | "\n", |
|
447 | "\n", | |
448 | "\n", |
|
448 | "\n", | |
449 |
"require([\" |
|
449 | "require([\"widgets/js/widget\"], function(WidgetManager){\n", | |
450 | " \n", |
|
450 | " \n", | |
451 | " // Define the DatePickerView\n", |
|
451 | " // Define the DatePickerView\n", | |
452 | " var DatePickerView = IPython.DOMWidgetView.extend({\n", |
|
452 | " var DatePickerView = IPython.DOMWidgetView.extend({\n", |
General Comments 0
You need to be logged in to leave comments.
Login now