dask / dask/distributed

`Client` shouldn't create `LocalCluster`

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

Description

This came out of the dev meeting today. The idea is that the separation between Client and Cluster is opaque and the hope is that making the separation clearer will help with understanding for users. The proposal here is that `Client` should not create a `LocalCluster` on the fly if no arguments are provided. Instead we should recommend people create the cluster explicitly.

current
```python
from distributed import Client

client = Client()
```
proposed
```python
from distributed import LocalCluster

client = LocalCluster().get_client()
```
The benefit of creating the cluster explicitly is that we can provide better help, and it makes it clearer to the user how they would go about using a different type of cluster.

Related to #6791

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.