MCPcopy Create free account
hub / github.com/dask/dask / test_visualize_highlevelgraph

Function test_visualize_highlevelgraph

dask/tests/test_base.py:591–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589 bool(sys.flags.optimize), reason="graphviz exception with Python -OO flag"
590)
591def test_visualize_highlevelgraph():
592 graphviz = pytest.importorskip("graphviz")
593 with tmpdir() as d:
594 x = da.arange(5, chunks=2)
595 viz = x.dask.visualize(filename=os.path.join(d, "mydask.png"))
596 # check visualization will automatically render in the jupyter notebook
597 assert isinstance(viz, graphviz.Digraph)
598
599
600@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 4

tmpdirFunction · 0.90
arangeMethod · 0.45
visualizeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected