issue_comments: 325373215
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/1522#issuecomment-325373215 | https://api.github.com/repos/pydata/xarray/issues/1522 | 325373215 | MDEyOklzc3VlQ29tbWVudDMyNTM3MzIxNQ== | 6213168 | 2017-08-28T14:42:33Z | 2017-08-28T14:48:12Z | MEMBER | This is in Jupyter: ``` def kernel(): print("Kernel invoked!") return numpy.array([100, 200]) data = dask.array.Array(name='foo', dask={('foo', 0): (kernel, )}, chunks=((2,),), dtype=float) ds = xarray.Dataset(
data_vars={
'foo': xarray.DataArray(data, dims=['x'], coords={'x': [10, 20]}),
'bar': xarray.DataArray([1, 2], dims=['x'], coords={'x': [10, 20]}),
})
ds.coords['y'] = ('y', [3, 4])
ds.coords['x2'] = ('x', data)
ds
YIKES! Here you have two separate issues: one is with repr() as expected. The other is the fact that Jupyter invokes getattr() on a plethora of _ipython_* attributes that xarray doesn't define, and there was an issue where all non-index coords were blindly being converted to indexVariable (which loads the data) every. single. time. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
252543868 |