You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, there is a use-case where the lazy-compute feature of dask is not necessary, and thus lazy-loading can be done without the overhead of dask.
I would propose updating read_lazy to have use_dask kwarg that uses dask in all instances where possible. The main change here to default behavior (i.e., True) would be that categoricals and nullables within Dataset2D would be dask arrays by default.
Other than that I would expect no change to defaults since even things like dense arrays are opened with dask instead of the zarr.Array or h5py.Dataset
Reacted by hanslovp-gne, Chris Piwonski and Selman Özleyen
This issue has been automatically marked as stale because it has not had recent activity.
Please add a comment if you want to keep the issue open. Thank you for your contributions!
It's very near on my to-do list. I can write something up if you want to take a shot (or PRs without guidance always welcome and encouraged!), but I think it would basically just boil down to having a new IORegistry, writing out the new types, passing through the arg, and handling edge cases.
Cool, thank you! We are looking into replacing our bespoke internal data representation with standardized AnnData. Lazy zarr is a game changer for that purpose. Thank you for the pointer. I will see what I can do (this is my first time looking at the AnnData souce code).
@hanslovp-gne I will be out for a week starting Monday and I won't work on this tomorrow so you're free to go for a week! In this comment in 1707 I noted a pitfall. Setting is CoW which means the whole object is read into memory as soon as you do something like my_backed_object[subset].layer["foo"] = value. I think this behavior is ok actually for a first pass, but it's just something to be aware of. The other open question is whether we'd want to trigger the AnnData.isbacked with this feature. Not sure.
Activity
[-]`read_lazy` option for no-dask[/-][+]`read_lazy` kwarg for not using dask[/+]flying-sheep commentedon Oct 13, 2025
and arrays would be raw
zarr.Arrays/h5py.Datasets?ilan-gold commentedon Oct 13, 2025
Yup or https://anndata.readthedocs.io/en/stable/generated/anndata.abc.CSRDataset.html or https://anndata.readthedocs.io/en/stable/generated/anndata.abc.CSCDataset.html if sparse
github-actions commentedon Jan 2, 2026
This issue has been automatically marked as stale because it has not had recent activity.
Please add a comment if you want to keep the issue open. Thank you for your contributions!
hanslovp-gne commentedon Feb 9, 2026
I would love to see something along those lines. I would like to avoid going through dask, if possible.
ilan-gold commentedon Feb 9, 2026
It's very near on my to-do list. I can write something up if you want to take a shot (or PRs without guidance always welcome and encouraged!), but I think it would basically just boil down to having a new
IORegistry, writing out the new types, passing through the arg, and handling edge cases.hanslovp-gne commentedon Feb 9, 2026
Cool, thank you! We are looking into replacing our bespoke internal data representation with standardized AnnData. Lazy zarr is a game changer for that purpose. Thank you for the pointer. I will see what I can do (this is my first time looking at the AnnData souce code).
ilan-gold commentedon Feb 12, 2026
@hanslovp-gne I will be out for a week starting Monday and I won't work on this tomorrow so you're free to go for a week! In this comment in 1707 I noted a pitfall. Setting is CoW which means the whole object is read into memory as soon as you do something like
my_backed_object[subset].layer["foo"] = value. I think this behavior is ok actually for a first pass, but it's just something to be aware of. The other open question is whether we'd want to trigger theAnnData.isbackedwith this feature. Not sure.cc @ivirshup since we just discussed this
flying-sheep commentedon Oct 13, 2026
Example: https://harpy.readthedocs.io/en/stable/generated/harpy.io.read_zarr.html
They have a
table_mode="backed"optioncc @ArneDefauw, wanna do a PR?
ArneDefauw commentedon Oct 14, 2026
Happy to do a PR! I have a few things to wrap up first, but I should be able to put one together next week.