mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Fixing the rest of the widget paths (widgets/js).
This commit is contained in:
parent
95ff7bbfd5
commit
0edcbf4d6a
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user