Skip to content

Up-to-date instructions for reading & writing to Zarr with Xarray #10410

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

Merged
merged 6 commits into from
Jun 11, 2025

Conversation

alxmrs
Copy link
Contributor

@alxmrs alxmrs commented Jun 10, 2025

I summarize the conclusions from the discussion in zarr-developers/zarr-python#2706 (comment), taking leaves from Tom and Ryan's books. I found that these docs didn't reflect the default state of Zarr and Xarray, and I hope this makes for less painful debugging for the next person.

I summarize the conclusions from the discussion in zarr-developers/zarr-python#2706 (comment), taking leave from Tom and Ryan's books. I found that these docs didn't reflect the default state of Zarr and Xarray, and I hope this makes for less painful debugging for the next person.
Copy link

welcome bot commented Jun 10, 2025

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

For writing, you must explicitly set up a ``MutableMapping``
instance and pass this, as follows:
For writing, you may either specify a bucket URL or explicitly set up a
``zarr.abc.store.Store`` instance, as follows:

.. code:: python

import gcsfs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a great place to use inline tabs. I'm thinking 3 tabs: "URL", "bbstore", and "fsspec". Are you up for making that change? We already depend on this plugin: https://sphinx-inline-tabs.readthedocs.io/en/latest/usage.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea, and TIL the syntax. No problem at all.

@alxmrs
Copy link
Contributor Author

alxmrs commented Jun 11, 2025

Here's what it looks like in the readthedocs preview:
Screenshot 2025-06-11 at 11 18 22 AM
Screenshot 2025-06-11 at 11 19 01 AM
Screenshot 2025-06-11 at 11 19 06 AM

@alxmrs alxmrs requested a review from dcherian June 11, 2025 21:07
@max-sixty
Copy link
Collaborator

that looks great @alxmrs !

@dcherian dcherian merged commit c0461e7 into pydata:main Jun 11, 2025
30 of 32 checks passed
Copy link

welcome bot commented Jun 11, 2025

Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! celebration gif

@alxmrs alxmrs deleted the alxmrs-updated-io-docs branch June 11, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy