Skip to content

Commit ff45087

Browse files
committed
Remove unnecessary import of ipython
1 parent 634f324 commit ff45087

21 files changed

+404
-604
lines changed

codes/00_array.ipynb

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,13 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 2,
12+
"execution_count": 1,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
1616
"import numpy as np"
1717
]
1818
},
19-
{
20-
"cell_type": "code",
21-
"execution_count": 3,
22-
"metadata": {},
23-
"outputs": [],
24-
"source": [
25-
"# prevent printing the returned object in each cell\n",
26-
"from IPython.core.interactiveshell import InteractiveShell\n",
27-
"InteractiveShell.ast_node_interactivity = 'none'"
28-
]
29-
},
3019
{
3120
"cell_type": "markdown",
3221
"metadata": {},
@@ -47,7 +36,7 @@
4736
},
4837
{
4938
"cell_type": "code",
50-
"execution_count": 4,
39+
"execution_count": 2,
5140
"metadata": {},
5241
"outputs": [
5342
{
@@ -75,7 +64,7 @@
7564
},
7665
{
7766
"cell_type": "code",
78-
"execution_count": 14,
67+
"execution_count": 3,
7968
"metadata": {},
8069
"outputs": [
8170
{
@@ -110,7 +99,7 @@
11099
},
111100
{
112101
"cell_type": "code",
113-
"execution_count": 15,
102+
"execution_count": 4,
114103
"metadata": {},
115104
"outputs": [
116105
{
@@ -138,7 +127,7 @@
138127
},
139128
{
140129
"cell_type": "code",
141-
"execution_count": 16,
130+
"execution_count": 5,
142131
"metadata": {},
143132
"outputs": [
144133
{
@@ -174,7 +163,7 @@
174163
},
175164
{
176165
"cell_type": "code",
177-
"execution_count": 17,
166+
"execution_count": 6,
178167
"metadata": {},
179168
"outputs": [
180169
{
@@ -206,7 +195,7 @@
206195
},
207196
{
208197
"cell_type": "code",
209-
"execution_count": 18,
198+
"execution_count": 7,
210199
"metadata": {},
211200
"outputs": [
212201
{
@@ -253,7 +242,7 @@
253242
},
254243
{
255244
"cell_type": "code",
256-
"execution_count": 19,
245+
"execution_count": 8,
257246
"metadata": {},
258247
"outputs": [
259248
{
@@ -287,7 +276,7 @@
287276
},
288277
{
289278
"cell_type": "code",
290-
"execution_count": 20,
279+
"execution_count": 9,
291280
"metadata": {},
292281
"outputs": [
293282
{
@@ -343,7 +332,7 @@
343332
},
344333
{
345334
"cell_type": "code",
346-
"execution_count": 21,
335+
"execution_count": 10,
347336
"metadata": {},
348337
"outputs": [
349338
{

codes/01_arithmetic-operations.ipynb

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
"import numpy as np"
1717
]
1818
},
19-
{
20-
"cell_type": "code",
21-
"execution_count": 2,
22-
"metadata": {},
23-
"outputs": [],
24-
"source": [
25-
"# prevent printing the returned object in each cell\n",
26-
"from IPython.core.interactiveshell import InteractiveShell\n",
27-
"InteractiveShell.ast_node_interactivity = 'none'"
28-
]
29-
},
3019
{
3120
"cell_type": "markdown",
3221
"metadata": {},
@@ -48,7 +37,7 @@
4837
},
4938
{
5039
"cell_type": "code",
51-
"execution_count": 3,
40+
"execution_count": 2,
5241
"metadata": {},
5342
"outputs": [
5443
{
@@ -83,7 +72,7 @@
8372
},
8473
{
8574
"cell_type": "code",
86-
"execution_count": 4,
75+
"execution_count": 3,
8776
"metadata": {},
8877
"outputs": [
8978
{
@@ -147,7 +136,7 @@
147136
},
148137
{
149138
"cell_type": "code",
150-
"execution_count": 5,
139+
"execution_count": 4,
151140
"metadata": {},
152141
"outputs": [
153142
{
@@ -183,7 +172,7 @@
183172
},
184173
{
185174
"cell_type": "code",
186-
"execution_count": 6,
175+
"execution_count": 5,
187176
"metadata": {},
188177
"outputs": [
189178
{

codes/02_comparative-operations.ipynb

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
"import numpy as np"
1717
]
1818
},
19-
{
20-
"cell_type": "code",
21-
"execution_count": 2,
22-
"metadata": {},
23-
"outputs": [],
24-
"source": [
25-
"# prevent printing the returned object in each cell\n",
26-
"from IPython.core.interactiveshell import InteractiveShell\n",
27-
"InteractiveShell.ast_node_interactivity = 'none'"
28-
]
29-
},
3019
{
3120
"cell_type": "markdown",
3221
"metadata": {},
@@ -48,7 +37,7 @@
4837
},
4938
{
5039
"cell_type": "code",
51-
"execution_count": 3,
40+
"execution_count": 2,
5241
"metadata": {},
5342
"outputs": [
5443
{
@@ -81,7 +70,7 @@
8170
},
8271
{
8372
"cell_type": "code",
84-
"execution_count": 4,
73+
"execution_count": 3,
8574
"metadata": {},
8675
"outputs": [
8776
{
@@ -139,7 +128,7 @@
139128
},
140129
{
141130
"cell_type": "code",
142-
"execution_count": 5,
131+
"execution_count": 4,
143132
"metadata": {},
144133
"outputs": [
145134
{
@@ -173,7 +162,7 @@
173162
},
174163
{
175164
"cell_type": "code",
176-
"execution_count": 6,
165+
"execution_count": 5,
177166
"metadata": {},
178167
"outputs": [
179168
{

codes/03_index-&-slice.ipynb

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
"import numpy as np"
1717
]
1818
},
19-
{
20-
"cell_type": "code",
21-
"execution_count": 2,
22-
"metadata": {},
23-
"outputs": [],
24-
"source": [
25-
"# prevent printing the returned object in each cell\n",
26-
"from IPython.core.interactiveshell import InteractiveShell\n",
27-
"InteractiveShell.ast_node_interactivity = 'none'"
28-
]
29-
},
3019
{
3120
"cell_type": "markdown",
3221
"metadata": {},
@@ -38,7 +27,7 @@
3827
},
3928
{
4029
"cell_type": "code",
41-
"execution_count": 3,
30+
"execution_count": 2,
4231
"metadata": {},
4332
"outputs": [
4433
{
@@ -81,7 +70,7 @@
8170
},
8271
{
8372
"cell_type": "code",
84-
"execution_count": 4,
73+
"execution_count": 3,
8574
"metadata": {},
8675
"outputs": [
8776
{
@@ -118,7 +107,7 @@
118107
},
119108
{
120109
"cell_type": "code",
121-
"execution_count": 5,
110+
"execution_count": 4,
122111
"metadata": {},
123112
"outputs": [
124113
{
@@ -182,7 +171,7 @@
182171
},
183172
{
184173
"cell_type": "code",
185-
"execution_count": 6,
174+
"execution_count": 5,
186175
"metadata": {},
187176
"outputs": [
188177
{
@@ -234,7 +223,7 @@
234223
},
235224
{
236225
"cell_type": "code",
237-
"execution_count": 7,
226+
"execution_count": 6,
238227
"metadata": {},
239228
"outputs": [
240229
{
@@ -294,7 +283,7 @@
294283
},
295284
{
296285
"cell_type": "code",
297-
"execution_count": 8,
286+
"execution_count": 7,
298287
"metadata": {},
299288
"outputs": [
300289
{
@@ -373,7 +362,7 @@
373362
},
374363
{
375364
"cell_type": "code",
376-
"execution_count": 9,
365+
"execution_count": 8,
377366
"metadata": {},
378367
"outputs": [],
379368
"source": [
@@ -383,7 +372,7 @@
383372
},
384373
{
385374
"cell_type": "code",
386-
"execution_count": 10,
375+
"execution_count": 9,
387376
"metadata": {},
388377
"outputs": [
389378
{
@@ -407,7 +396,7 @@
407396
},
408397
{
409398
"cell_type": "code",
410-
"execution_count": 11,
399+
"execution_count": 10,
411400
"metadata": {},
412401
"outputs": [
413402
{
@@ -447,7 +436,7 @@
447436
},
448437
{
449438
"cell_type": "code",
450-
"execution_count": 12,
439+
"execution_count": 11,
451440
"metadata": {},
452441
"outputs": [
453442
{
@@ -478,7 +467,7 @@
478467
},
479468
{
480469
"cell_type": "code",
481-
"execution_count": 13,
470+
"execution_count": 12,
482471
"metadata": {},
483472
"outputs": [
484473
{
@@ -530,7 +519,7 @@
530519
},
531520
{
532521
"cell_type": "code",
533-
"execution_count": 14,
522+
"execution_count": 13,
534523
"metadata": {},
535524
"outputs": [
536525
{
@@ -564,7 +553,7 @@
564553
},
565554
{
566555
"cell_type": "code",
567-
"execution_count": 15,
556+
"execution_count": 14,
568557
"metadata": {},
569558
"outputs": [
570559
{

0 commit comments

Comments
 (0)