Skip to content

Commit 6a92510

Browse files
rendercanvas from pypi (#19)
1 parent 6e84826 commit 6a92510

4 files changed

Lines changed: 23 additions & 34 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ A viewer for ome-zarr images.
1515

1616
```sh
1717
uv pip install "oz-viewer[examples] @ git+https://github.com/kevinyamauchi/oz-viewer.git"
18-
19-
# if you want to try the Jupyter Lab viewer, install rendercanvas from main
20-
uv pip install git+https://github.com/pygfx/rendercanvas.git
2118
```
2219

2320
## Download dataset

examples/orthoviewer.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"- **Right dock** — volume transparency mode / opacity and slice-overlay opacity.\n",
2525
"- **2D panels** — pan (left-drag), zoom (scroll), a slice slider below each\n",
2626
" canvas; the colored slice planes in the 3D panel follow them.\n",
27-
"- **3D panel** — orbit (left-drag), zoom (scroll), pan (right-drag).\n",
28-
"\n",
29-
"**Setup.** From the repo root, install the example extras into the environment\n",
30-
"(the anywidget canvas backend currently needs `rendercanvas` from git main):\n",
31-
"\n",
32-
"```bash\n",
33-
"VIRTUAL_ENV=.venv uv pip install -e '.[examples]'\n",
34-
"VIRTUAL_ENV=.venv uv pip install \"rendercanvas @ git+https://github.com/pygfx/rendercanvas.git\"\n",
35-
"```\n"
27+
"- **3D panel** — orbit (left-drag), zoom (scroll), pan (right-drag).\n"
3628
]
3729
},
30+
{
31+
"metadata": {},
32+
"cell_type": "code",
33+
"outputs": [],
34+
"execution_count": null,
35+
"source": "",
36+
"id": "693e87f28d733b75"
37+
},
3838
{
3939
"cell_type": "code",
4040
"execution_count": 1,

examples/viewer.ipynb

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,7 @@
1919
"- **Left dock** — per-channel colormap, contrast limits, opacity, visibility.\n",
2020
"- **Bottom dock** — toggle 2D / 3D.\n",
2121
"- **2D mode** — pan (left-drag), zoom (scroll), z-slice slider below the canvas.\n",
22-
"- **3D mode** — orbit (left-drag), zoom (scroll), pan (right-drag).\n",
23-
"\n",
24-
"**Setup.** From the repo root, install the example extras into the environment\n",
25-
"(the anywidget canvas backend currently needs `rendercanvas` from git main):\n",
26-
"\n",
27-
"```bash\n",
28-
"VIRTUAL_ENV=.venv uv pip install -e '.[examples]'\n",
29-
"VIRTUAL_ENV=.venv uv pip install \"rendercanvas @ git+https://github.com/pygfx/rendercanvas.git\"\n",
30-
"```\n"
22+
"- **3D mode** — orbit (left-drag), zoom (scroll), pan (right-drag).\n"
3123
]
3224
},
3325
{
@@ -110,18 +102,18 @@
110102
"</pre>\n"
111103
],
112104
"text/plain": [
113-
"\u001b[3m OME-Zarr \u001b[0m\n",
114-
"\u001b[3m \u001b[0m\u001b[2;3mfile:///Users/ky/Documents/code/oz-viewer/examples/cells3d.ome.zarr\u001b[0m\u001b[3m \u001b[0m\n",
115-
"\u001b[1;36m \u001b[0m\u001b[1;36mdtype \u001b[0m\u001b[1;36m \u001b[0m uint16 \n",
116-
"\u001b[1;36m \u001b[0m\u001b[1;36maxes \u001b[0m\u001b[1;36m \u001b[0m c z y x \n",
117-
"\u001b[1;36m \u001b[0m\u001b[1;36munits \u001b[0m\u001b[1;36m \u001b[0m None micrometer micrometer micrometer \n",
118-
"\u001b[1;36m \u001b[0m\u001b[1;36mlevels \u001b[0m\u001b[1;36m \u001b[0m 3 \n",
119-
"\u001b[1;36m \u001b[0m\u001b[1;36m level 0 \u001b[0m\u001b[1;36m \u001b[0m [2, 60, 256, 256] \n",
120-
"\u001b[1;36m \u001b[0m\u001b[1;36m level 1 \u001b[0m\u001b[1;36m \u001b[0m [2, 60, 128, 128] \n",
121-
"\u001b[1;36m \u001b[0m\u001b[1;36m level 2 \u001b[0m\u001b[1;36m \u001b[0m [2, 60, 64, 64] \n",
122-
"\u001b[1;36m \u001b[0m\u001b[1;36mscale (spatial) \u001b[0m\u001b[1;36m \u001b[0m 0.29 0.26 0.26 \n",
123-
"\u001b[1;36m \u001b[0m\u001b[1;36mworld extents (spatial)\u001b[0m\u001b[1;36m \u001b[0m 17.4 66.56 66.56 \n",
124-
"\u001b[1;36m \u001b[0m\u001b[1;36mdepth range \u001b[0m\u001b[1;36m \u001b[0m near=1.00 far=666 \n"
105+
"\u001B[3m OME-Zarr \u001B[0m\n",
106+
"\u001B[3m \u001B[0m\u001B[2;3mfile:///Users/ky/Documents/code/oz-viewer/examples/cells3d.ome.zarr\u001B[0m\u001B[3m \u001B[0m\n",
107+
"\u001B[1;36m \u001B[0m\u001B[1;36mdtype \u001B[0m\u001B[1;36m \u001B[0m uint16 \n",
108+
"\u001B[1;36m \u001B[0m\u001B[1;36maxes \u001B[0m\u001B[1;36m \u001B[0m c z y x \n",
109+
"\u001B[1;36m \u001B[0m\u001B[1;36munits \u001B[0m\u001B[1;36m \u001B[0m None micrometer micrometer micrometer \n",
110+
"\u001B[1;36m \u001B[0m\u001B[1;36mlevels \u001B[0m\u001B[1;36m \u001B[0m 3 \n",
111+
"\u001B[1;36m \u001B[0m\u001B[1;36m level 0 \u001B[0m\u001B[1;36m \u001B[0m [2, 60, 256, 256] \n",
112+
"\u001B[1;36m \u001B[0m\u001B[1;36m level 1 \u001B[0m\u001B[1;36m \u001B[0m [2, 60, 128, 128] \n",
113+
"\u001B[1;36m \u001B[0m\u001B[1;36m level 2 \u001B[0m\u001B[1;36m \u001B[0m [2, 60, 64, 64] \n",
114+
"\u001B[1;36m \u001B[0m\u001B[1;36mscale (spatial) \u001B[0m\u001B[1;36m \u001B[0m 0.29 0.26 0.26 \n",
115+
"\u001B[1;36m \u001B[0m\u001B[1;36mworld extents (spatial)\u001B[0m\u001B[1;36m \u001B[0m 17.4 66.56 66.56 \n",
116+
"\u001B[1;36m \u001B[0m\u001B[1;36mdepth range \u001B[0m\u001B[1;36m \u001B[0m near=1.00 far=666 \n"
125117
]
126118
},
127119
"metadata": {},

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
"typer >= 0.12",
3939
"rich >= 13",
4040
"numpy >= 1.24",
41-
"cellier[pyside,anywidget]>=0.0.25",
41+
"cellier[pyside,anywidget]>=0.0.26",
4242
"aiohttp >= 3.9",
4343
"zarr >= 3.0",
4444
"s3fs",

0 commit comments

Comments
 (0)