diff --git a/examples/Interactive Widgets/Custom Widget - Hello World.ipynb b/examples/Interactive Widgets/Custom Widget - Hello World.ipynb
index 062c0c8..6fa8784 100644
--- a/examples/Interactive Widgets/Custom Widget - Hello World.ipynb
+++ b/examples/Interactive Widgets/Custom Widget - Hello World.ipynb
@@ -28,29 +28,6 @@
"prompt_number": 3
},
{
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%%html\n",
- ""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- ""
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 4
- },
- {
"cell_type": "heading",
"level": 1,
"metadata": {
diff --git a/examples/Interactive Widgets/Widget Basics.ipynb b/examples/Interactive Widgets/Widget Basics.ipynb
index f176533..443b7e6 100644
--- a/examples/Interactive Widgets/Widget Basics.ipynb
+++ b/examples/Interactive Widgets/Widget Basics.ipynb
@@ -2,7 +2,7 @@
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
- "signature": "sha256:7a953d1eb1417e7212ddeb70602b36355521ca1907ac33b089850ccea35bd8ab"
+ "signature": "sha256:f6c1dd624d35ab0c768f77dffdae914baf4d88a3c244047c00ffca8b9c96e81e"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -17,27 +17,20 @@
]
},
{
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%%html\n",
- ""
- ],
- "language": "python",
+ "cell_type": "heading",
+ "level": 1,
"metadata": {},
- "outputs": [
- {
- "html": [
- ""
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 11
+ "source": [
+ "Simple Widget Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "What are widgets?"
+ ]
},
{
"cell_type": "markdown",
@@ -47,15 +40,20 @@
}
},
"source": [
- "# Simple Widget Introduction\n",
- "\n",
- "## What are widgets?\n",
"Widgets are elements that exists in both the front-end and the back-end.\n",
"\n",
"** Insert Frontend-Backend Picture **"
]
},
{
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "What can they be used for?"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -63,12 +61,19 @@
}
},
"source": [
- "## What can they be used for?\n",
"You can use widgets to build **interactive GUIs** for your notebooks. \n",
"You can also use widgets to **synchronize stateful and stateless information** between Python and JavaScript."
]
},
{
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Using widgets "
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -76,7 +81,6 @@
}
},
"source": [
- "## Using widgets \n",
"To use the widget framework, you need to **import `IPython.html.widgets`**."
]
},
@@ -184,6 +188,14 @@
"prompt_number": 4
},
{
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Why does displaying the same widget twice work?"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -191,7 +203,6 @@
}
},
"source": [
- "## Why does displaying the same widget twice work?\n",
"Widgets are **represented in the back-end by a single object**. Each time a widget is displayed, **a new representation** of that same object is created in the front-end. These representations are called **views**.\n",
"\n",
"** Insert Backend-Frontend Views Figure **"
@@ -228,6 +239,14 @@
"prompt_number": 5
},
{
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Widget properties"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -235,7 +254,6 @@
}
},
"source": [
- "## Widget properties\n",
"All of the IPython widgets **share a similar naming scheme**. To read the value of a widget, you can query its `value` property."
]
},
@@ -328,6 +346,14 @@
"prompt_number": 8
},
{
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Shorthand for setting the initial values of widget properties"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -335,7 +361,6 @@
}
},
"source": [
- "### Shorthand for setting the initial values of widget properties\n",
"While creating a widget, you can set some or all of the initial values of that widget by **defining them as keyword arguments in the widget's constructor** (as seen below)."
]
},
@@ -351,6 +376,14 @@
"prompt_number": 9
},
{
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Linking two similar widgets"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -358,7 +391,6 @@
}
},
"source": [
- "## Linking two similar widgets\n",
"If you need to display the same value two different ways, you'll have to use two different widgets. Instead of **attempting to manually synchronize the values** of the two widgets, you can use the `traitlet` `link` function **to link two properties together**. Below, the values of three widgets are linked together."
]
},
@@ -381,6 +413,14 @@
"prompt_number": 10
},
{
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Unlinking widgets"
+ ]
+ },
+ {
"cell_type": "markdown",
"metadata": {
"slideshow": {
@@ -388,7 +428,6 @@
}
},
"source": [
- "### Unlinking widgets\n",
"Unlinking the widgets is simple. All you have to do is call `.unlink` on the link object."
]
},
diff --git a/examples/Interactive Widgets/Widget Events.ipynb b/examples/Interactive Widgets/Widget Events.ipynb
index d554028..be6d184 100644
--- a/examples/Interactive Widgets/Widget Events.ipynb
+++ b/examples/Interactive Widgets/Widget Events.ipynb
@@ -8,7 +8,7 @@
],
"celltoolbar": "Slideshow",
"name": "",
- "signature": "sha256:9f69a28be85dccdcc7e2b5d742047aa140a572d19e4215467aa88745c29ffce7"
+ "signature": "sha256:ac1b90929c7736b2261ba498b6f28dd89d3e7b7981c43f937879febe6841e4cd"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -23,29 +23,6 @@
]
},
{
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%%html\n",
- ""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- ""
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 1
- },
- {
"cell_type": "heading",
"level": 1,
"metadata": {
diff --git a/examples/Interactive Widgets/Widget List.ipynb b/examples/Interactive Widgets/Widget List.ipynb
index e741ab8..4d22d19 100644
--- a/examples/Interactive Widgets/Widget List.ipynb
+++ b/examples/Interactive Widgets/Widget List.ipynb
@@ -2,7 +2,7 @@
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
- "signature": "sha256:e6f77565893357e0302d40f80fbb389950912ab04a07b64026e28720cf11bfbe"
+ "signature": "sha256:4200cc7b2c7067f4c5391eeee6ba0d9be43b4faa16a245ba1634e7de66150372"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -17,27 +17,20 @@
]
},
{
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%%html\n",
- ""
- ],
- "language": "python",
+ "cell_type": "heading",
+ "level": 1,
"metadata": {},
- "outputs": [
- {
- "html": [
- ""
- ],
- "metadata": {},
- "output_type": "display_data",
- "text": [
- ""
- ]
- }
- ],
- "prompt_number": 1
+ "source": [
+ "Widget List"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Complete list"
+ ]
},
{
"cell_type": "markdown",
@@ -47,9 +40,6 @@
}
},
"source": [
- "# Widget List\n",
- "\n",
- "## Complete list\n",
"For a complete list of the widgets available to you, you can list the classes in the widget namespace (as seen below). Classes with the suffix `Widget` are widgets. `Widget` and `DOMWidget` are base classes."
]
},
diff --git a/examples/Interactive Widgets/Widget Styling.ipynb b/examples/Interactive Widgets/Widget Styling.ipynb
index a612992..d8f7756 100644
--- a/examples/Interactive Widgets/Widget Styling.ipynb
+++ b/examples/Interactive Widgets/Widget Styling.ipynb
@@ -8,7 +8,7 @@
],
"celltoolbar": "Slideshow",
"name": "",
- "signature": "sha256:98ca4ae261d3dc9c0b43b3fa822772a47fff9956e443c640b2caead8d02efece"
+ "signature": "sha256:6ee07cf9871c5a2431610eb8a2a5057f9e669769932696690f70967b255fbea7"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -28,7 +28,6 @@
"input": [
"%%html\n",
"