Skip to content

Commit b7f5975

Browse files
authored
Merge pull request #115 from thewtex/install-links
DOC: More installation links
2 parents 077b747 + 8fe9262 commit b7f5975

File tree

3 files changed

+36
-10
lines changed

3 files changed

+36
-10
lines changed

docs/installation.md

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
:::{tab-item} System
66

77
```shell
8-
pip install "ngff-zarr[cli]"
8+
pip install ngff-zarr
99
```
1010

1111
:::
1212

13-
:::{tab-item} Browser In Pyodide, e.g. the
14-
[Pyodide REPL](https://pyodide.org/en/stable/console.html) or
15-
[JupyterLite](https://jupyterlite.readthedocs.io/en/latest/try/lab),
13+
:::{tab-item} Browser via Pyodide
14+
15+
With, for example, the [Pyodide REPL] or [JupyterLite]
1616

1717
```python
1818
import micropip
@@ -23,14 +23,38 @@ await micropip.install('ngff-zarr')
2323

2424
::::
2525

26-
Optional dependencies include:
26+
## Optional dependencies
27+
28+
Optional extras dependencies include:
29+
30+
`cli` : Additional IO libraries for
31+
[file conversion programmically or via the command line interface (CLI)](./cli.md).
32+
33+
`dask-image` : Support multiscale generation with [dask-image]
34+
[methods](./methods.md).
35+
36+
`itk` : Support multiscale generation with [itk] [methods](./methods.md).
37+
38+
`tensorstore` : Support writing with [tensorstore].
2739

28-
`cli` : Additional IO libraries for the command line interface (CLI).
40+
`validate` : Support OME-Zarr data model metadata validation when reading.
2941

30-
`dask-image` : Multiscale generation with `dask-image` methods.
42+
[Pyodide REPL]: https://pyodide.org/en/stable/console.html
43+
[JupyterLite]: https://jupyterlite.readthedocs.io/en/latest/try/lab
44+
[dask-image]: https://image.dask.org/en/latest/
45+
[itk]: https://docs.itk.org/en/latest/learn/python_quick_start.html
46+
[tensorstore]: https://google.github.io/tensorstore/
3147

32-
`itk` : Multiscale generation with `itk` methods.
48+
### Install all optional dependencies
3349

34-
`tensorstore` : Support writing with `tensorstore`.
50+
To install all optional dependencies:
3551

36-
`validate` : Support metadata validation when reading.
52+
```shell
53+
pip install "ngff-zarr[cli,dask-image,itk,tensorstore,validate]"
54+
```
55+
56+
which is equivalent to:
57+
58+
```shell
59+
pip install "ngff-zarr[all]"
60+
```

docs/quick_start.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ import numpy as np
2020

2121
data = np.random.randint(0, 256, int(1e6)).reshape((1000, 1000))
2222
multiscales = nz.to_multiscales(data)
23+
2324
nz.to_ngff_zarr('example.ome.zarr', multiscales)
2425
```

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ validate = [
7878
"jsonschema"
7979
]
8080
docs = [ "furo>=2024.7.18,<2025", "myst-parser>=3.0.1,<4", "sphinx>=7.4.7,<8", "sphinx-autodoc2>=0.5.0,<0.6", "sphinx-copybutton>=0.5.2,<0.6", "sphinx-design>=0.6.0,<0.7", "sphinxext-opengraph>=0.9.1,<0.10", "sphinx-autobuild>=2024.4.16,<2025"]
81+
all = ["ngff-zarr[cli]", "ngff-zarr[docs]", "ngff-zarr[test]", "ngff-zarr[validate]", "ngff-zarr[tensorstore]"]
8182

8283

8384
[tool.coverage.report]

0 commit comments

Comments
 (0)