id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 536900797,MDU6SXNzdWU1MzY5MDA3OTc=,3614,Autocomplete in registered accessors,48983334,closed,0,,,6,2019-12-12T10:49:53Z,2019-12-16T14:53:08Z,2019-12-16T14:40:25Z,CONTRIBUTOR,,,,"At present if you use `register_dataset_accessor()` or `register_dataarray_accessor()`, ipython can not autocomplete to function within that accessor. For example: #### MCVE Code Sample ```python import xarray as xr @xr.register_dataset_accessor('geo') class GeoAccessor: def __init__(self, xarray_obj): self._obj = xarray_obj @property def center(self): # return the geographic center point of this dataset lon = self._obj.latitude lat = self._obj.longitude return (float(lon.mean()), float(lat.mean())) def plot(self): # plot this array's data on a map, e.g., using Cartopy pass ``` #### Expected Output It would be good if in ipython when pressing TAB `data.geo.c ` would autocomplete to `data.geo.center()`. #### Output of ``xr.show_versions()``
INSTALLED VERSIONS ------------------ commit: None python: 3.7.5 (default, Oct 17 2019, 12:16:48) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] python-bits: 64 OS: Linux OS-release: 5.3.12-300.fc31.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_IE.UTF-8 LOCALE: en_IE.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.6.3 xarray: 0.14.1 pandas: 0.25.3 numpy: 1.17.4 scipy: 1.2.1 netCDF4: 1.5.3 pydap: None h5netcdf: None h5py: 2.9.0 Nio: None zarr: None cftime: 1.0.4.2 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2.9.0 distributed: None matplotlib: 3.1.2 cartopy: None seaborn: None numbagg: None setuptools: 42.0.2 pip: 19.1.1 conda: None pytest: None IPython: 7.10.1 sphinx: None
","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/3614/reactions"", ""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue 508371892,MDExOlB1bGxSZXF1ZXN0MzI5MTc1MzU5,3411,Revert changes made in #3358,48983334,closed,0,,,2,2019-10-17T10:07:03Z,2019-10-21T14:00:17Z,2019-10-21T00:17:48Z,CONTRIBUTOR,,0,pydata/xarray/pulls/3411,"Revert changes made in #3358 which cause errors if cloudpickle is not installed. Closes #3401","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/3411/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull