-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommendations for domain-specific accessor documentation #3361
Comments
@gmaze Just as an example, here is what we recently added for MetPy: https://unidata.github.io/MetPy/latest/api/generated/metpy.xarray.html. Previously, we just had a narrative-form tutorial. If there are other recommendations, it would be great to incorporate those into MetPy as well! |
Thanks for the example @jthielen, this looks great ! May be it would be better to not show to readers the accessor class name, since it will never be seen on the API frontend, only the scope name will. So it would be great to be able to have the documentation to read something like:
instead of:
But I don't know how to manage that with sphinx documentation |
comment from @benbovy in #3625:
For reference, here's pandas' version: https://github.com/pandas-dev/pandas/blob/837daf18d480cce18c25844c591c39da19437252/doc/source/conf.py#L441-L591 I think to make this a bit easier for everyone we should add this to the documentation on accessors. Also, we could create a sphinx extension module that contains all the code in |
Agreed, this would definitely be useful.
I also agree! Since the code in |
I think a documentation build only dependency would be very easy for both xarray and pandas to use. So a separate package (a sphinx extension?) sounds like a good idea. |
I created such a package since I think I'm going to need that for |
Hi,
I'm currently working on an ocean domain specific accessor for a machine learning technique (https://github.com/gmaze/pyxpcm/tree/nfeatures).
I implemented an xarray.DataSet accessor (name space
pyxpcm
) that I'd like to document.I thus wonder whether the xarray/pangeo community has recommendations about how to do this appropriately ?
Right now, I simply have an API auto-generated page, see:
https://pyxpcm-dev.readthedocs.io/en/latest/api.html#xarray-dataset-accessor-the-pyxpcm-name-space
The text was updated successfully, but these errors were encountered: