{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/dask/issues/438","labels_url":"https://api.github.com/repos/ContinuumIO/dask/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/dask/issues/438/comments","events_url":"https://api.github.com/repos/ContinuumIO/dask/issues/438/events","html_url":"https://github.com/ContinuumIO/dask/issues/438","id":95672138,"number":438,"title":"Using `get` with a cluster","user":{"login":"jakirkham","id":3019665,"avatar_url":"https://avatars.githubusercontent.com/u/3019665?v=3","gravatar_id":"","url":"https://api.github.com/users/jakirkham","html_url":"https://github.com/jakirkham","followers_url":"https://api.github.com/users/jakirkham/followers","following_url":"https://api.github.com/users/jakirkham/following{/other_user}","gists_url":"https://api.github.com/users/jakirkham/gists{/gist_id}","starred_url":"https://api.github.com/users/jakirkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakirkham/subscriptions","organizations_url":"https://api.github.com/users/jakirkham/orgs","repos_url":"https://api.github.com/users/jakirkham/repos","events_url":"https://api.github.com/users/jakirkham/events{/privacy}","received_events_url":"https://api.github.com/users/jakirkham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-17T14:52:45Z","updated_at":"2015-07-17T15:27:38Z","closed_at":null,"body":"So, I have just looked over the cluster documentation. I am trying to implement something simple. For instance, say I have a `dask.array` (`a`) that I would like to take the max over one dimension (e.g. the `0`-th), which can be done simply to give me a new `dask.array` (`am`). Normally, if I want to get this value, I could allocate an array and store it. In the case of a dask client, I am not sure how to proceed. \r\n\r\n    >>> am = a.max(axis=0)"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/dask/issues/comments/122312306","html_url":"https://github.com/ContinuumIO/dask/issues/438#issuecomment-122312306","issue_url":"https://api.github.com/repos/ContinuumIO/dask/issues/438","id":122312306,"user":{"login":"jakirkham","id":3019665,"avatar_url":"https://avatars.githubusercontent.com/u/3019665?v=3","gravatar_id":"","url":"https://api.github.com/users/jakirkham","html_url":"https://github.com/jakirkham","followers_url":"https://api.github.com/users/jakirkham/followers","following_url":"https://api.github.com/users/jakirkham/following{/other_user}","gists_url":"https://api.github.com/users/jakirkham/gists{/gist_id}","starred_url":"https://api.github.com/users/jakirkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakirkham/subscriptions","organizations_url":"https://api.github.com/users/jakirkham/orgs","repos_url":"https://api.github.com/users/jakirkham/repos","events_url":"https://api.github.com/users/jakirkham/events{/privacy}","received_events_url":"https://api.github.com/users/jakirkham/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T15:27:38Z","updated_at":"2015-07-17T15:27:38Z","body":"> This is a bit tricky because each worker will have to open the HDF5 file on their own (h5py.datasets aren't serializable)\r\n\r\nAnother thought on this. Maybe you could have something like, but admittedly not the same as, iPython's `%px`/`%%px` where it runs the same command on all engines. As you can't really use cell magics, maybe a `with` block would be an option."}}