-
Notifications
You must be signed in to change notification settings - Fork 113
move custom accessors to advanced and add a more complex example #168
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
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@lsetiawan @dcherian I think this is ready to go (thanks for the first round of edits, Don!) - the QC failure is because I added a link in another tutorial to the one I've added in this PR, so the link doesn't exist yet (and thus fails the link checker). Happy to fix this if there's a better/more preferred way to include internal links. |
intermediate/xarray_ecosystem.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using this syntax might just work:
[ADVANCED](accessors)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding "Customizing Xarray" makes the title quite long for the left sidebar. Seems better to shorten somehow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - how about "A Tour of Xarray Customizations"? Happy to iterate on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Extending Xarray: A Tour"?
* upstream/main: move custom accessors to advanced and add more complex, runnable examples (xarray-contrib#168) Update and reorganize apply_ufunc material (xarray-contrib#180) Add jupyterlab-myst 2.0 and sphinx-exercise (xarray-contrib#187) Add jupyterlab-myst (xarray-contrib#182) Add codespace config for scipy 2023 (xarray-contrib#184) Add SciPy Instructions (xarray-contrib#183) Edits to "Xarray and Dask" (xarray-contrib#177) Setup PR Preview workflow (xarray-contrib#175) contents write permissions for github token (xarray-contrib#178)
This PR removes the "Accessors part 2" from the
Intermediate/Tour of the Xarray Ecosystem
and puts it in it's ownAdvanced/Accessors
section of the book. This move keeps the coverage of the topics in the "ecosystem" tutorial more balanced and enables the addition of a more complex, detailed example custom accessor that encourages users to add more checks/docs to their code (because they only have to write them once). The example added was reduced from a larger custom extension (which badly needs updating!)UPDATE: @scottyhq and @dcherian suggested making the accessor examples executable as part of this PR. Given the added example used custom local files that could not be easily pulled from existing example datasets, a third (now example 2) example - that is executable - was added. This custom accessor actually replicates the steps in this tutorial.