Skip to content

Commit 9f63924

Browse files
author
Ray Bell
committed
add setup data for 06
1 parent 6da7c1a commit 9f63924

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

01x_lazy.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@
168168
"Consider reading three CSV files with `pd.read_csv` and then measuring their total length. We will consider how you would do this with ordinary Python code, then build a graph for this process using delayed, and finally execute this graph using Dask, for a handy speed-up factor of more than two (there are only three inputs to parallelize over)."
169169
]
170170
},
171+
{
172+
"cell_type": "code",
173+
"execution_count": null,
174+
"metadata": {},
175+
"outputs": [],
176+
"source": [
177+
"%run prep.py -d accounts"
178+
]
179+
},
171180
{
172181
"cell_type": "code",
173182
"execution_count": null,
@@ -573,7 +582,7 @@
573582
"name": "python",
574583
"nbconvert_exporter": "python",
575584
"pygments_lexer": "ipython3",
576-
"version": "3.7.3"
585+
"version": "3.7.6"
577586
}
578587
},
579588
"nbformat": 4,

06_distributed_advanced.ipynb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,15 @@
237237
"Generally, any Dask operation that is executed using `.compute()` can be submitted for asynchronous execution using `c.compute()` instead, and this applies to all collections. Here is an example with the calculation previously seen in the Bag chapter. We have replaced the `.compute()` method there with the distributed client version, so, again, we could continue to submit more work (perhaps based on the result of the calculation), or, in the next cell, follow the progress of the computation. A similar progress-bar appears in the monitoring UI page."
238238
]
239239
},
240+
{
241+
"cell_type": "code",
242+
"execution_count": null,
243+
"metadata": {},
244+
"outputs": [],
245+
"source": [
246+
"%run prep.py -d accounts"
247+
]
248+
},
240249
{
241250
"cell_type": "code",
242251
"execution_count": null,
@@ -305,6 +314,15 @@
305314
"In the example here, we repeat a calculation from the Array chapter - notice that each call to `compute()` is roughly the same speed, because the loading of the data is included every time."
306315
]
307316
},
317+
{
318+
"cell_type": "code",
319+
"execution_count": null,
320+
"metadata": {},
321+
"outputs": [],
322+
"source": [
323+
"%run prep.py -d random"
324+
]
325+
},
308326
{
309327
"cell_type": "code",
310328
"execution_count": null,
@@ -675,7 +693,7 @@
675693
"name": "python",
676694
"nbconvert_exporter": "python",
677695
"pygments_lexer": "ipython3",
678-
"version": "3.7.3"
696+
"version": "3.7.6"
679697
}
680698
},
681699
"nbformat": 4,

0 commit comments

Comments
 (0)