Skip to content

Commit 07ec62e

Browse files
committed
delayed
1 parent 3ceeee9 commit 07ec62e

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

01_dask.delayed.ipynb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@
1313
"\n",
1414
"In this section we parallelize simple for-loop style code with Dask and `dask.delayed`. Often, this is the only function that you will need to convert functions for use with Dask.\n",
1515
"\n",
16-
"This is a simple way to use `dask` to parallelize existing codebases or build [complex systems](http://matthewrocklin.com/blog/work/2018/02/09/credit-models-with-dask). This will also help us to develop an understanding for later sections."
16+
"This is a simple way to use `dask` to parallelize existing codebases or build [complex systems](https://blog.dask.org/2018/02/09/credit-models-with-dask). This will also help us to develop an understanding for later sections.\n",
17+
"\n",
18+
"**Related Documentation**\n",
19+
"\n",
20+
"* [Delayed documentation](https://docs.dask.org/en/latest/delayed.html)\n",
21+
"* [Delayed screencast](https://www.youtube.com/watch?v=SHqFmynRxVU)\n",
22+
"* [Delayed API](https://docs.dask.org/en/latest/delayed-api.html)\n",
23+
"* [Delayed examples](https://examples.dask.org/delayed.html)\n",
24+
"* [Delayed best practices](https://docs.dask.org/en/latest/delayed-best-practices.html)"
1725
]
1826
},
1927
{
@@ -31,7 +39,7 @@
3139
"source": [
3240
"from dask.distributed import Client\n",
3341
"\n",
34-
"client = Client()"
42+
"client = Client(n_workers=4)"
3543
]
3644
},
3745
{
@@ -698,7 +706,11 @@
698706
"- How much speedup did you get? Is this how much speedup you'd expect?\n",
699707
"- Experiment with where to call `compute`. What happens when you call it on `sums` and `counts`? What happens if you wait and call it on `mean`?\n",
700708
"- Experiment with delaying the call to `sum`. What does the graph look like if `sum` is delayed? What does the graph look like if it isn't?\n",
701-
"- Can you think of any reason why you'd want to do the reduction one way over the other?"
709+
"- Can you think of any reason why you'd want to do the reduction one way over the other?\n",
710+
"\n",
711+
"### Learn More\n",
712+
"\n",
713+
"Visit the [Delayed documentation](https://docs.dask.org/en/latest/delayed.html). In particular, this [delayed screencast](https://www.youtube.com/watch?v=SHqFmynRxVU) will reinforce the concepts you learned here and the [delayed best practices](https://docs.dask.org/en/latest/delayed-best-practices.html) document collects advice on using `dask.delayed` well."
702714
]
703715
},
704716
{

0 commit comments

Comments
 (0)