Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix for executor example in README.md #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dee-me-tree-or-love
Copy link

In the README example, there was a problem with using dask.delayed since delayed is imported from dask:

from math import sqrt
from dask.distributed import Executor
from dask import delayed
# no import of `dask`
...
tasks = [dask.delayed(sqrt)(i) for i in range(100)] 
# `dask` is not declared

tasks = [delayed(sqrt)(i) for i in range(100)]
# works
...

I know that's just a little picky note, but I hope it maybe helps ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant