visualize(self, filename='mydask', format=None, optimize_graph=False, **kwargs)
Requires graphviz
to be installed.
For more information on optimization see here:
https://docs.dask.org/en/latest/optimize.html
The name of the file to write to disk. If the provided :None:None:`filename`
doesn't include an extension, '.png' will be used by default. If :None:None:`filename`
is None, no file will be written, and we communicate with dot using only pipes.
Format in which to write output file. Default is 'png'.
If True, the graph is optimized before rendering. Otherwise, the graph is displayed as is. Default is False.
Options to color nodes. Provide cmap=
keyword for additional colormap
Additional keyword arguments to forward to to_graphviz
.
See dask.dot.dot_graph for more information.
Render the computation of this object's task graph using graphviz.
>>> x.visualize(filename='dask.pdf') # doctest: +SKIPSee :
... x.visualize(filename='dask.pdf', color='order') # doctest: +SKIP
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