|
13 | 13 | "\n", |
14 | 14 | "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", |
15 | 15 | "\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)" |
17 | 25 | ] |
18 | 26 | }, |
19 | 27 | { |
|
31 | 39 | "source": [ |
32 | 40 | "from dask.distributed import Client\n", |
33 | 41 | "\n", |
34 | | - "client = Client()" |
| 42 | + "client = Client(n_workers=4)" |
35 | 43 | ] |
36 | 44 | }, |
37 | 45 | { |
|
698 | 706 | "- How much speedup did you get? Is this how much speedup you'd expect?\n", |
699 | 707 | "- 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", |
700 | 708 | "- 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." |
702 | 714 | ] |
703 | 715 | }, |
704 | 716 | { |
|
0 commit comments