dask 2021.10.0

Parameters
ensure_file(source, destination=None, comment=True)

This tries to move a default configuration file to a default location if if does not already exist. It also comments out that file by default.

This is to be used by downstream modules (like dask.distributed) that may have default configuration files that they wish to include in the default configuration path.

Parameters

source : string, filename

Source configuration file, typically within a source directory.

destination : string, directory

Destination directory. Configurable by DASK_CONFIG environment variable, falling back to ~/.config/dask.

comment : bool, True by default

Whether or not to comment out the config file when copying.

Copy file to default location if it does not already exist

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/config.py#205
type: <class 'function'>
Commit: