dask / dask/distributed

Documentation for IPython backend - set_options needs the client instance method

Open
#739 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

I was originally trying the following based on the set option pattern from http://dask.pydata.org/en/latest/scheduler-overview.html, and getting `TypeError: get() missing 1 required positional argument: 'keys'`

```python
import dask.array as da
from dask import set_options, distributed
from ipyparallel import Client
rc = Client()
rc = rc.become_distributed()
set_options(get=distributed.Client.get)
x = da.arange(100, chunks=10)
x.compute()
```

But in fact `set_options` should be given the instance method `rc.get` not the class method `distributed.Client.get`:

```python
import dask.array as da
from dask import set_options, distributed
from ipyparallel import Client
rc = Client()
rc = rc.become_distributed()
set_options(get=rc.get)
x = da.arange(100, chunks=10)
x.compute()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.