Skip to content

Commit 9d9ce60

Browse files
committed
Move import cells to be more visible
1 parent db4976e commit 9d9ce60

4 files changed

+36
-36
lines changed

notebooks/02.Interact/02.01-OPTIONAL-More-About-Interact.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"cells": [
33
{
4-
"cell_type": "code",
5-
"execution_count": null,
4+
"cell_type": "markdown",
65
"metadata": {},
7-
"outputs": [],
86
"source": [
9-
"from ipywidgets import interact, interactive, fixed, interact_manual\n",
10-
"import ipywidgets as widgets"
7+
"<!--NAVIGATION-->\n",
8+
"< [Widgets without writing widgets: interact](02.00-Using-Interact.ipynb) | [Contents](00.00-index.ipynb) | [Simple Widget Introduction](03.00-Widget_Basics.ipynb) >"
119
]
1210
},
1311
{
14-
"cell_type": "markdown",
12+
"cell_type": "code",
13+
"execution_count": null,
1514
"metadata": {},
15+
"outputs": [],
1616
"source": [
17-
"<!--NAVIGATION-->\n",
18-
"< [Widgets without writing widgets: interact](02.00-Using-Interact.ipynb) | [Contents](00.00-index.ipynb) | [Simple Widget Introduction](03.00-Widget_Basics.ipynb) >"
17+
"from ipywidgets import interact, interactive, fixed, interact_manual\n",
18+
"import ipywidgets as widgets"
1919
]
2020
},
2121
{

notebooks/05.Events/05.02-OPTIONAL-Widget_Events_2_--_bad_password_generator,_version_1.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": null,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"import ipywidgets as widgets"
10-
]
11-
},
123
{
134
"cell_type": "markdown",
145
"metadata": {},
@@ -29,6 +20,15 @@
2920
"This notebook illustrates how to connect the function that calculates the password to the length slider using `observe` but mixes together the code to calculate the password and the code to handle the events generated by the interface"
3021
]
3122
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": null,
26+
"metadata": {},
27+
"outputs": [],
28+
"source": [
29+
"import ipywidgets as widgets"
30+
]
31+
},
3232
{
3333
"cell_type": "markdown",
3434
"metadata": {},

notebooks/05.Events/05.03-OPTIONAL-Widget_Events_2_--_Separating_Concerns.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": null,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"import ipywidgets as widgets"
10-
]
11-
},
123
{
134
"cell_type": "markdown",
145
"metadata": {},
@@ -26,6 +17,15 @@
2617
"A key principle in designing a graphical user interface is to separate the logic of an application from the graphical widgets the user sees. For example, in the super-simple password generator widget, the basic logic is to construct a sequence of random letters given the length. Let's isolate that logic in a function, without any widgets. This function takes a password length and returns a generated password string."
2718
]
2819
},
20+
{
21+
"cell_type": "code",
22+
"execution_count": null,
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"import ipywidgets as widgets"
27+
]
28+
},
2929
{
3030
"cell_type": "code",
3131
"execution_count": null,

notebooks/05.Events/05.04-OPTIONAL-Widget_Events_2--Separating_concerns,_object_oriented.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": null,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"import ipywidgets as widgets\n",
10-
"import traitlets"
11-
]
12-
},
133
{
144
"cell_type": "markdown",
155
"metadata": {},
@@ -36,6 +26,16 @@
3626
"+ one way to link those two classes."
3727
]
3828
},
29+
{
30+
"cell_type": "code",
31+
"execution_count": null,
32+
"metadata": {},
33+
"outputs": [],
34+
"source": [
35+
"import ipywidgets as widgets\n",
36+
"import traitlets"
37+
]
38+
},
3939
{
4040
"cell_type": "markdown",
4141
"metadata": {},

0 commit comments

Comments
 (0)