Skip to content

Commit e15b09f

Browse files
committed
Update notebooks to use the new widget and traitlet paths
1 parent 09923ed commit e15b09f

17 files changed

+20
-20
lines changed

examples/Interactive Widgets/Beat Frequencies.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"outputs": [],
3737
"source": [
38-
"from IPython.html.widgets import interactive\n",
38+
"from jupyter_notebook.widgets import interactive\n",
3939
"from IPython.display import Audio, display\n",
4040
"import numpy as np"
4141
]

examples/Interactive Widgets/Custom Widget - Hello World.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
},
110110
"outputs": [],
111111
"source": [
112-
"from IPython.html import widgets\n",
112+
"from jupyter_notebook import widgets\n",
113113
"from traitlets import Unicode\n",
114114
"\n",
115115
"class HelloWidget(widgets.DOMWidget):\n",

examples/Interactive Widgets/Date Picker Widget.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"source": [
2323
"from __future__ import print_function # For py 2.7 compat\n",
2424
"\n",
25-
"from IPython.html import widgets # Widget definitions\n",
25+
"from jupyter_notebook import widgets # Widget definitions\n",
2626
"from IPython.display import display # Used to display widgets in the notebook\n",
2727
"from traitlets import Unicode # Used to declare attributes of our widget"
2828
]

examples/Interactive Widgets/Exploring Graphs.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"outputs": [],
2424
"source": [
25-
"from IPython.html.widgets import interact"
25+
"from jupyter_notebook.widgets import interact"
2626
]
2727
},
2828
{

examples/Interactive Widgets/Export As (nbconvert).ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"outputs": [],
1010
"source": [
1111
"# Widget related imports\n",
12-
"from IPython.html import widgets\n",
12+
"from jupyter_notebook import widgets\n",
1313
"from IPython.display import display, clear_output, Javascript\n",
1414
"from traitlets import Unicode\n",
1515
"\n",

examples/Interactive Widgets/Factoring.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"outputs": [],
2424
"source": [
25-
"from IPython.html.widgets import interact\n",
25+
"from jupyter_notebook.widgets import interact\n",
2626
"from IPython.display import display"
2727
]
2828
},

examples/Interactive Widgets/File Upload Widget.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"source": [
1111
"import base64\n",
1212
"from __future__ import print_function # py 2.7 compat.\n",
13-
"from IPython.html import widgets # Widget definitions.\n",
13+
"from jupyter_notebook import widgets # Widget definitions.\n",
1414
"from traitlets import Unicode # Traitlet needed to add synced attributes to the widget."
1515
]
1616
},

examples/Interactive Widgets/Image Browser.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"outputs": [],
3636
"source": [
37-
"from IPython.html.widgets import interact"
37+
"from jupyter_notebook.widgets import interact"
3838
]
3939
},
4040
{

examples/Interactive Widgets/Image Processing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"outputs": [],
2424
"source": [
25-
"from IPython.html.widgets import interact, interactive, fixed\n",
25+
"from jupyter_notebook.widgets import interact, interactive, fixed\n",
2626
"from IPython.display import display"
2727
]
2828
},

examples/Interactive Widgets/Lorenz Differential Equations.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"outputs": [],
5959
"source": [
60-
"from IPython.html.widgets import interact, interactive\n",
60+
"from jupyter_notebook.widgets import interact, interactive\n",
6161
"from IPython.display import clear_output, display, HTML"
6262
]
6363
},

examples/Interactive Widgets/Nonblocking Console.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"from IPython.utils.py3compat import bytes_to_str, string_types\n",
1515
"\n",
1616
"# Widget related imports.\n",
17-
"from IPython.html import widgets\n",
17+
"from jupyter_notebook import widgets\n",
1818
"from IPython.display import display"
1919
]
2020
},

examples/Interactive Widgets/Using Interact.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"The `interact` function (`IPython.html.widgets.interact`) automatically creates user interface (UI) controls for exploring code and data interactively. It is the easiest way to get started using IPython's widgets."
14+
"The `interact` function (`jupyter_notebook.widgets.interact`) automatically creates user interface (UI) controls for exploring code and data interactively. It is the easiest way to get started using IPython's widgets."
1515
]
1616
},
1717
{
@@ -23,8 +23,8 @@
2323
"outputs": [],
2424
"source": [
2525
"from __future__ import print_function\n",
26-
"from IPython.html.widgets import interact, interactive, fixed\n",
27-
"from IPython.html import widgets"
26+
"from jupyter_notebook.widgets import interact, interactive, fixed\n",
27+
"from jupyter_notebook import widgets"
2828
]
2929
},
3030
{

examples/Interactive Widgets/Variable Inspector.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"outputs": [],
3131
"source": [
32-
"from IPython.html import widgets # Loads the Widget framework.\n",
32+
"from jupyter_notebook import widgets # Loads the Widget framework.\n",
3333
"from IPython.core.magics.namespace import NamespaceMagics # Used to query namespace.\n",
3434
"\n",
3535
"# For this example, hide these names, just to avoid polluting the namespace further\n",

examples/Interactive Widgets/Widget Basics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
},
7070
"source": [
71-
"To use the widget framework, you need to **import `IPython.html.widgets`**."
71+
"To use the widget framework, you need to **import `jupyter_notebook.widgets`**."
7272
]
7373
},
7474
{
@@ -79,7 +79,7 @@
7979
},
8080
"outputs": [],
8181
"source": [
82-
"from IPython.html.widgets import *"
82+
"from jupyter_notebook.widgets import *"
8383
]
8484
},
8585
{

examples/Interactive Widgets/Widget Events.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"outputs": [],
5353
"source": [
54-
"from IPython.html import widgets\n",
54+
"from jupyter_notebook import widgets\n",
5555
"print(widgets.Button.on_click.__doc__)"
5656
]
5757
},

examples/Interactive Widgets/Widget List.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"outputs": [],
4242
"source": [
43-
"from IPython.html import widgets\n",
43+
"from jupyter_notebook import widgets\n",
4444
"[n for n in dir(widgets) if not n.endswith('Widget') and n[0] == n[0].upper() and not n[0] == '_']"
4545
]
4646
},

examples/Interactive Widgets/Widget Styling.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"from IPython.html import widgets\n",
36+
"from jupyter_notebook import widgets\n",
3737
"from IPython.display import display"
3838
]
3939
},

0 commit comments

Comments
 (0)