#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np # create an array of normally-distributed random numbers a = np.random.randn(1000) # In[2]: import dask.array as da # create a dask array from the above array a2 = da.from_array(a, chunks=200) # multiply this array by a factor b2 = a2 * 4 # find the minimum value b2_min = b2.min() print(b2_min) # In[3]: get_ipython().run_line_magic('matplotlib', 'inline') from dask.dot import dot_graph dot_graph(b2_min.dask) # In[4]: b2_min.dask