Skip to content

Commit 33f46eb

Browse files
authored
Merge pull request #559 from thewtex/all-extras
ENH: Add 'all' package extras and use in examples
2 parents 5d0f5f1 + 1222a5e commit 33f46eb

15 files changed

+48
-30
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ Interactive widgets to visualize images, point sets, and 3D geometry on the web.
99

1010
## Installation
1111

12+
To install for all environments:
13+
14+
```bash
15+
pip install 'itkwidgets[all]>=1.0a16'
16+
```
17+
1218
### Jupyter Notebook
1319

1420
To install the widgets for the Jupyter Notebook with pip:
1521

1622
```bash
17-
pip install 'itkwidgets[notebook]>=1.0a8'
23+
pip install 'itkwidgets[notebook]>=1.0a16'
1824
```
1925

2026
Then look for the ImJoy icon at the top in the Jupyter Notebook:
@@ -26,7 +32,7 @@ Then look for the ImJoy icon at the top in the Jupyter Notebook:
2632
For Jupyter Lab 3 run:
2733

2834
```bash
29-
pip install 'itkwidgets[lab]>=1.0a8'
35+
pip install 'itkwidgets[lab]>=1.0a16'
3036
```
3137

3238
Then look for the ImJoy icon at the top in the Jupyter Notebook:
@@ -38,7 +44,7 @@ Then look for the ImJoy icon at the top in the Jupyter Notebook:
3844
For Google Colab run:
3945

4046
```bash
41-
pip install 'itkwidgets>=1.0a8'
47+
pip install 'itkwidgets>=1.0a16'
4248
```
4349

4450
## Example Notebooks

docs/quick_start_guide.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
## Installation
44

5+
To install for all environments:
6+
7+
```bash
8+
pip install 'itkwidgets[all]>=1.0a16'
9+
```
10+
511
### Jupyter Notebook
612

713
To install the widgets for the Jupyter Notebook with pip:
814

915
```bash
10-
pip install 'itkwidgets[notebook]>=1.0a8'
16+
pip install 'itkwidgets[notebook]>=1.0a16'
1117
```
1218

1319
Then look for the ImJoy icon at the top in the Jupyter Notebook:
@@ -19,7 +25,7 @@ Then look for the ImJoy icon at the top in the Jupyter Notebook:
1925
For Jupyter Lab 3 run:
2026

2127
```bash
22-
pip install 'itkwidgets[lab]>=1.0a8'
28+
pip install 'itkwidgets[lab]>=1.0a16'
2329
```
2430

2531
Then look for the ImJoy icon at the top in the Jupyter Notebook:
@@ -31,7 +37,7 @@ Then look for the ImJoy icon at the top in the Jupyter Notebook:
3137
For Google Colab run:
3238

3339
```bash
34-
pip install 'itkwidgets>=1.0a8'
40+
pip install 'itkwidgets>=1.0a16'
3541
```
3642

3743
## Example Notebooks

examples/Hello3DWorld.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"source": [
2020
"import sys\n",
2121
"\n",
22-
"!{sys.executable} -m pip install -q imageio \"itkwidgets>=1.0a6\""
22+
"!{sys.executable} -m pip install -q imageio \"itkwidgets[all]>=1.0a16\""
2323
]
2424
},
2525
{
@@ -140,7 +140,7 @@
140140
"name": "python",
141141
"nbconvert_exporter": "python",
142142
"pygments_lexer": "ipython3",
143-
"version": "3.7.12"
143+
"version": "3.10.5"
144144
}
145145
},
146146
"nbformat": 4,

examples/NumPyArrayPointSet.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"source": [
2020
"import sys\n",
2121
"\n",
22-
"!{sys.executable} -m pip install -q \"itkwidgets>=1.0a6\""
22+
"!{sys.executable} -m pip install -q \"itkwidgets[all]>=1.0a16\""
2323
]
2424
},
2525
{
@@ -145,7 +145,7 @@
145145
"name": "python",
146146
"nbconvert_exporter": "python",
147147
"pygments_lexer": "ipython3",
148-
"version": "3.8.10"
148+
"version": "3.10.5"
149149
}
150150
},
151151
"nbformat": 4,

examples/integrations/MONAI/transform_visualization.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"# Install dependencies for this example\n",
2121
"import sys\n",
2222
"\n",
23-
"!{sys.executable} -m pip install -q \"monai-weekly[nibabel, matplotlib, tqdm]\" \"itkwidgets>=1.0a6\""
23+
"!{sys.executable} -m pip install -q \"monai-weekly[nibabel, matplotlib, tqdm]\" \"itkwidgets[all]>=1.0a16\""
2424
]
2525
},
2626
{
@@ -249,7 +249,7 @@
249249
"name": "python",
250250
"nbconvert_exporter": "python",
251251
"pygments_lexer": "ipython3",
252-
"version": "3.8.10"
252+
"version": "3.10.5"
253253
}
254254
},
255255
"nbformat": 4,

examples/integrations/PyImageJ/ImageJImgLib2.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"# Install dependencies for this example\n",
2525
"import sys\n",
2626
"\n",
27-
"!conda install --yes --prefix {sys.prefix} -c conda-forge pyimagej"
27+
"!conda install --yes --prefix {sys.prefix} -c conda-forge pyimagej\n",
28+
"!{sys.executable} -m pip install -q \"itkwidgets[all]>=1.0a16\""
2829
]
2930
},
3031
{
@@ -147,7 +148,7 @@
147148
"name": "python",
148149
"nbconvert_exporter": "python",
149150
"pygments_lexer": "ipython3",
150-
"version": "3.8.10"
151+
"version": "3.10.5"
151152
}
152153
},
153154
"nbformat": 4,

examples/integrations/PyVista/LiDAR.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"# Install dependencies for this example\n",
2121
"import sys\n",
2222
"\n",
23-
"!{sys.executable} -m pip install -q pyvista \"itkwidgets>=1.0a6\""
23+
"!{sys.executable} -m pip install -q pyvista \"itkwidgets[all]>=1.0a16\""
2424
]
2525
},
2626
{
@@ -145,7 +145,7 @@
145145
"name": "python",
146146
"nbconvert_exporter": "python",
147147
"pygments_lexer": "ipython3",
148-
"version": "3.8.10"
148+
"version": "3.10.5"
149149
}
150150
},
151151
"nbformat": 4,

examples/integrations/PyVista/UniformGrid.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"# Install dependencies for this example\n",
2121
"import sys\n",
2222
"\n",
23-
"!{sys.executable} -m pip install -q pyvista \"itkwidgets>=1.0a6\""
23+
"!{sys.executable} -m pip install -q pyvista \"itkwidgets[all]>=1.0a16\""
2424
]
2525
},
2626
{
@@ -186,7 +186,7 @@
186186
"name": "python",
187187
"nbconvert_exporter": "python",
188188
"pygments_lexer": "ipython3",
189-
"version": "3.8.10"
189+
"version": "3.10.5"
190190
}
191191
},
192192
"nbformat": 4,

examples/integrations/dask/DaskArray.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"import sys\n",
2222
"\n",
2323
"!{sys.executable} -m pip install -q --upgrade --pre itk-io\n",
24-
"!{sys.executable} -m pip install -q 'dask[diagnostics]' toolz scikit-image pooch matplotlib \"itkwidgets>=1.0a6\""
24+
"!{sys.executable} -m pip install -q 'dask[diagnostics]' toolz scikit-image pooch matplotlib \"itkwidgets[all]>=1.0a16\""
2525
]
2626
},
2727
{
@@ -354,7 +354,7 @@
354354
"name": "python",
355355
"nbconvert_exporter": "python",
356356
"pygments_lexer": "ipython3",
357-
"version": "3.9.13"
357+
"version": "3.10.5"
358358
}
359359
},
360360
"nbformat": 4,

examples/integrations/itk/3DImage.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"# Install dependencies for this example\n",
1919
"import sys\n",
2020
"\n",
21-
"!{sys.executable} -m pip install -q --upgrade --pre itk-io \"itkwidgets>=1.0a6\""
21+
"!{sys.executable} -m pip install -q --upgrade --pre itk-io \"itkwidgets[all]>=1.0a16\""
2222
]
2323
},
2424
{
@@ -131,7 +131,7 @@
131131
"name": "python",
132132
"nbconvert_exporter": "python",
133133
"pygments_lexer": "ipython3",
134-
"version": "3.9.13"
134+
"version": "3.10.5"
135135
}
136136
},
137137
"nbformat": 4,

0 commit comments

Comments
 (0)