|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"source": [
|
|
|
|
|
"In the IPython notebook [require.js](http://requirejs.org/) is used to load JavaScript dependencies.\n",
|
|
|
|
|
"All IPython widget code depends on `notebook/js/widgets/widget.js`,\n",
|
|
|
|
|
"All IPython widget code depends on `widgets/js/widget.js`,\n",
|
|
|
|
|
"where the base widget model and base view are defined.\n",
|
|
|
|
|
"We use require.js to load this file:"
|
|
|
|
|
]
|
|
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
|
"input": [
|
|
|
|
|
"%%javascript\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"require([\"notebook/js/widgets/widget\"], function(WidgetManager){\n",
|
|
|
|
|
"require([\"widgets/js/widget\"], function(WidgetManager){\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"});"
|
|
|
|
|
],
|
|
|
|
|
@ -174,7 +174,7 @@
|
|
|
|
|
"input": [
|
|
|
|
|
"%%javascript\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"require([\"notebook/js/widgets/widget\"], function(WidgetManager){\n",
|
|
|
|
|
"require([\"widgets/js/widget\"], function(WidgetManager){\n",
|
|
|
|
|
" \n",
|
|
|
|
|
" // Define the DatePickerView\n",
|
|
|
|
|
" var DatePickerView = IPython.DOMWidgetView.extend({\n",
|
|
|
|
|
@ -446,7 +446,7 @@
|
|
|
|
|
"%%javascript\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"require([\"notebook/js/widgets/widget\"], function(WidgetManager){\n",
|
|
|
|
|
"require([\"widgets/js/widget\"], function(WidgetManager){\n",
|
|
|
|
|
" \n",
|
|
|
|
|
" // Define the DatePickerView\n",
|
|
|
|
|
" var DatePickerView = IPython.DOMWidgetView.extend({\n",
|
|
|
|
|
|