Skip to content

Commit 5279bd1

Browse files
dev whats-new (#9936)
* dev whats-new * silence warning * [skip-ci] add rich * [skip-ci] add :okwarning: for ipython blocks which use to_zarr in user-guide/io.rst * [skip-ci] add :okwarning: for ipython blocks which use open_zarr in user-guide/io.rst * [skip-ci] remove :okwarning: for python code block --------- Co-authored-by: Kai Mühlbauer <[email protected]>
1 parent ceb5364 commit 5279bd1

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

ci/requirements/doc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies:
3131
- pre-commit
3232
- pyarrow
3333
- pyproj
34+
- rich # for Zarr tree()
3435
- scipy!=1.10.0
3536
- seaborn
3637
- setuptools

doc/internals/zarr-encoding-spec.rst

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ As a concrete example, here we write a tutorial dataset to Zarr and then
5353
re-open it directly with Zarr:
5454

5555
.. ipython:: python
56+
:okwarning:
5657
5758
import os
5859
import xarray as xr

doc/user-guide/io.rst

+7
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ To write to a local directory, we pass a path to a directory:
661661
! rm -rf path/to/directory.zarr
662662
663663
.. ipython:: python
664+
:okwarning:
664665
665666
ds = xr.Dataset(
666667
{"foo": (("x", "y"), np.random.rand(4, 5))},
@@ -697,6 +698,7 @@ To read back a zarr dataset that has been created this way, we use the
697698
:py:func:`open_zarr` method:
698699

699700
.. ipython:: python
701+
:okwarning:
700702
701703
ds_zarr = xr.open_zarr("path/to/directory.zarr")
702704
ds_zarr
@@ -771,6 +773,7 @@ to Zarr:
771773
! rm -rf path/to/directory.zarr
772774
773775
.. ipython:: python
776+
:okwarning:
774777
775778
import dask.array
776779
@@ -823,6 +826,7 @@ For example:
823826
! rm -rf foo.zarr
824827
825828
.. ipython:: python
829+
:okwarning:
826830
827831
import zarr
828832
from numcodecs.blosc import Blosc
@@ -873,6 +877,7 @@ order, e.g., for time-stepping a simulation:
873877
! rm -rf path/to/directory.zarr
874878
875879
.. ipython:: python
880+
:okwarning:
876881
877882
ds1 = xr.Dataset(
878883
{"foo": (("x", "y", "t"), np.random.rand(4, 5, 2))},
@@ -940,6 +945,7 @@ space on disk or in memory, yet when writing to disk the default zarr behavior i
940945
split them into chunks:
941946

942947
.. ipython:: python
948+
:okwarning:
943949
944950
ds.to_zarr("path/to/directory.zarr", mode="w")
945951
! ls -R path/to/directory.zarr
@@ -950,6 +956,7 @@ storage provider. To disable this chunking, we can specify a chunk size equal to
950956
length of each dimension by using the shorthand chunk size ``-1``:
951957

952958
.. ipython:: python
959+
:okwarning:
953960
954961
ds.to_zarr(
955962
"path/to/directory.zarr",

doc/whats-new.rst

+27
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,33 @@ What's New
1414
1515
np.random.seed(123456)
1616
17+
.. _whats-new.2025.01.2:
18+
19+
v2025.01.2 (unreleased)
20+
-----------------------
21+
22+
New Features
23+
~~~~~~~~~~~~
24+
25+
26+
Breaking changes
27+
~~~~~~~~~~~~~~~~
28+
29+
30+
Deprecations
31+
~~~~~~~~~~~~
32+
33+
34+
Bug fixes
35+
~~~~~~~~~
36+
37+
38+
Documentation
39+
~~~~~~~~~~~~~
40+
41+
42+
Internal Changes
43+
~~~~~~~~~~~~~~~~
1744

1845
.. _whats-new.2025.01.1:
1946

0 commit comments

Comments
 (0)