Skip to content

Commit 809016f

Browse files
committed
Update
1 parent e90c1d6 commit 809016f

4 files changed

Lines changed: 70 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ _build/
55
.DS_Store
66
notebooks/data
77
references/
8-
Untitled.ipynb
8+
Untitled.ipynb
9+
.venv/

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ An overview of the content can be found at [notebooks/Index.ipynb](notebooks/Ind
1010

1111
If you have a Google/Gmail account, you can Run this tutorial from your browser using Colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/vitessce/vitessce-python-tutorial-2026/blob/main/notebooks/Index.ipynb).
1212

13+
### Molab
14+
15+
If colab is not working, you can try Molab instead:
16+
- [01-Single-Spatial-View.ipynb](https://molab.marimo.io/github/vitessce/vitessce-python-tutorial-2026/blob/main/notebooks/01-Single-Spatial-View.ipynb)
17+
- [02-Multiple-Views.ipynb](https://molab.marimo.io/github/vitessce/vitessce-python-tutorial-2026/blob/main/notebooks/02-Multiple-Views.ipynb)
18+
- [03-Available-View-Types.ipynb](https://molab.marimo.io/github/vitessce/vitessce-python-tutorial-2026/blob/main/notebooks/03-Available-View-Types.ipynb)
19+
- [04-Coordinated-Multiple-Views.ipynb](https://molab.marimo.io/github/vitessce/vitessce-python-tutorial-2026/blob/main/notebooks/04-Coordinated-Multiple-Views.ipynb)
20+
1321
## Additional materials
1422

1523
Prior tutorial materials can be found in https://github.com/vitessce/vitessce-python-tutorial-2023.
@@ -19,3 +27,55 @@ Prior tutorial materials can be found in https://github.com/vitessce/vitessce-py
1927

2028
The format and structure of these tutorial materials are inspired heavily by the [Gosling Tutorial](https://github.com/gosling-lang/gosling-tutorial) created by Sehi L'Yi, Trevor Manz, Qianwen Wang, and Nils Gehlenborg.
2129

30+
## Local usage
31+
32+
To use these notebooks locally, clone the repository:
33+
34+
```sh
35+
git clone https://github.com/vitessce/vitessce-python-tutorial-2026.git
36+
cd vitessce-python-tutorial-2026
37+
```
38+
39+
We recommend using [uv](https://docs.astral.sh/uv/#installation).
40+
41+
Create the virtual environment:
42+
43+
```sh
44+
uv venv --python 3.12
45+
```
46+
47+
Activate the virtual environment:
48+
49+
```sh
50+
source .venv/bin/activate
51+
```
52+
53+
Install:
54+
55+
```sh
56+
uv add --requirements requirements.txt
57+
```
58+
59+
Run the notebooks
60+
61+
```sh
62+
uv run jupyter lab
63+
```
64+
65+
When running the notebooks locally, ignore (i.e., do not run) the `!pip install` lines in the notebooks. Your virtual environment already contains these packages since they are listed in `requirements.txt`.
66+
67+
## Troubleshooting
68+
69+
If you see an anndata error that mentions `allow_write_nullable_strings`, run the following code:
70+
71+
```py
72+
import anndata
73+
anndata.settings.allow_write_nullable_strings = True
74+
```
75+
76+
If you see errors related to missing data, try renaming the output file path and re-running the data writing code:
77+
78+
```diff
79+
- zarr_path = join("data", "pbmc68k.adata.zarr")
80+
+ zarr_path = join("data", "pbmc68k_v2.adata.zarr")
81+
```

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8-
"jupyterlab>=4.5.8",
8+
"jupyterlab>=3.0.0",
99
"vitessce[all]==3.9.2",
1010
"spatialdata==0.7.3",
1111
"spatialdata-plot==0.4.0",
12-
"easy_vitessce==0.0.12"
12+
"easy-vitessce==0.0.12",
13+
"scanpy>=1.12.1",
1314
]

requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
jupyter-book==0.13.0
2-
pandas
1+
jupyterlab>=3.0.0
32
vitessce[all]==3.9.2
3+
scanpy
4+
easy-vitessce==0.0.12
5+
spatialdata==0.7.3
6+
spatialdata-plot==0.4.0

0 commit comments

Comments
 (0)