|
| 1 | +# spatialdata-plot-notebooks |
| 2 | + |
| 3 | +Executable notebooks demonstrating [spatialdata-plot] on real spatial-omics |
| 4 | +datasets. Rendered into the [spatialdata-plot documentation][docs] as a |
| 5 | +gallery. |
| 6 | + |
| 7 | +[spatialdata-plot]: https://github.com/scverse/spatialdata-plot |
| 8 | +[docs]: https://spatialdata.scverse.org/projects/plot/en/latest/ |
| 9 | + |
| 10 | +## Layout |
| 11 | + |
| 12 | +``` |
| 13 | +tutorials/ # end-to-end workflows on real datasets (Visium, Xenium, MERFISH, ...) |
| 14 | +examples/ # short, focused notebooks demonstrating one feature at a time |
| 15 | +``` |
| 16 | + |
| 17 | +Each notebook is committed **with outputs** so the `spatialdata-plot` docs build |
| 18 | +performs no execution. Outputs are kept fresh by a scheduled CI job that |
| 19 | +re-executes every notebook against the latest `spatialdata-plot` release. |
| 20 | + |
| 21 | +## Running notebooks locally |
| 22 | + |
| 23 | +```bash |
| 24 | +git clone https://github.com/scverse/spatialdata-plot-notebooks.git |
| 25 | +cd spatialdata-plot-notebooks |
| 26 | +pip install -e ".[exec]" |
| 27 | +jupyter lab |
| 28 | +``` |
| 29 | + |
| 30 | +The `exec` extra pulls `spatialdata-plot`, `squidpy` (for dataset loaders), |
| 31 | +and `jupyter`. Datasets are fetched on first run via each library's built-in |
| 32 | +caching (`pooch`), then re-used across runs. |
| 33 | + |
| 34 | +## Contributing a notebook |
| 35 | + |
| 36 | +See [CONTRIBUTING.md](CONTRIBUTING.md). Short version: |
| 37 | + |
| 38 | +1. Add `tutorials/<topic>.ipynb` (workflow) or `examples/<group>/<topic>.ipynb` |
| 39 | + (focused). |
| 40 | +2. Re-execute end-to-end and commit with outputs. |
| 41 | +3. Add the notebook to `tutorials/index.md` or `examples/index.md`. |
| 42 | +4. Open a PR — `lint.yaml` checks structure; `execute.yaml` re-runs notebooks |
| 43 | + on the PR. |
| 44 | + |
| 45 | +## Datasets and attribution |
| 46 | + |
| 47 | +Notebooks use public datasets distributed via `squidpy.datasets` and |
| 48 | +`spatialdata.datasets`. Per-dataset citations live in the markdown header of |
| 49 | +each notebook; please follow the same convention when contributing. |
| 50 | + |
| 51 | +## License |
| 52 | + |
| 53 | +BSD-3-Clause. See [LICENSE](LICENSE). |
0 commit comments