Skip to content

Commit 2a8e690

Browse files
authored
Merge pull request #420 from InsightSoftwareConsortium/requirements-updates
2 parents 0c27c67 + 0a1913a commit 2a8e690

File tree

14 files changed

+652
-215
lines changed

14 files changed

+652
-215
lines changed

.binder/postBuild

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ pip install .
66
# add itkwidgets
77
jupyter nbextension install --py --sys-prefix itkwidgets
88
jupyter nbextension enable --py --sys-prefix itkwidgets
9-
cd /tmp/
10-
jupyter labextension install @jupyter-widgets/jupyterlab-manager
11-
jupyter labextension install jupyter-matplotlib jupyterlab-datawidgets jupyter-webrtc itkwidgets [email protected] [email protected]

.circleci/config.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/notebook-test.yml

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,56 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2
12-
- uses: treebeardtech/[email protected]
1312
with:
14-
docker-username: thewtex
13+
python-version: 3.8
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
python -m pip install --upgrade setuptools wheel
18+
pip install -r requirements.txt -r requirements-dev.txt PySide2
19+
- name: Install package and extension
20+
run: |
21+
python -m pip install -e .
22+
jupyter nbextension install --py --symlink --sys-prefix itkwidgets
23+
jupyter nbextension enable --py --sys-prefix itkwidgets
24+
jupyter nbextension enable --py --sys-prefix widgetsnbextension
25+
env:
26+
MPLBACKEND: Qt5Agg
27+
- uses: treebeardtech/[email protected]
28+
with:
29+
docker-username: "${{ secrets.DOCKER_USERNAME }}"
1530
docker-password: "${{ secrets.DOCKER_PASSWORD }}"
1631
docker-image-name: insighttoolkit/itkwidgets
32+
notebooks: |
33+
examples/2DImage.ipynb
34+
examples/3DImage.ipynb
35+
examples/CameraParameters.ipynb
36+
examples/Checkerboard.ipynb
37+
examples/CompareImages.ipynb
38+
examples/DaskArray.ipynb
39+
examples/ImageLabelStatistics.ipynb
40+
examples/ImageWithAnisotropicPixelSpacing.ipynb
41+
examples/InteractiveParameterExploration.ipynb
42+
examples/LabelImages.ipynb
43+
examples/LineProfile.ipynb
44+
examples/Mesh.ipynb
45+
examples/NumPyArrayImage.ipynb
46+
examples/NumPyArrayPointSet.ipynb
47+
examples/PointBasedSpatialObject.ipynb
48+
examples/pyvista.PolyData.ipynb
49+
examples/pyvista.PolyDataAndImageData.ipynb
50+
examples/pyvista.StructuredGrid.ipynb
51+
examples/pyvista.UniformGrid.ipynb
52+
examples/pyvista.UnstructuredGrid.ipynb
53+
examples/pyvistaLiDAR.ipynb
54+
examples/RecordAVideo.ipynb
55+
examples/scikit-image.ipynb
56+
examples/SegmentationSkeleton.ipynb
57+
examples/SelectRegionOfInterest.ipynb
58+
examples/SpecifyAColormap.ipynb
59+
examples/VolumeOpacityTransferFunction.ipynb
60+
examples/vtkImageData.ipynb
61+
examples/vtkPolyData.ipynb
62+
examples/vtkUnstructuredGrid.ipynb
63+
env:
64+
MPLBACKEND: Qt5Agg

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Interactive Jupyter_ widgets to visualize images, point sets, and meshes on the
4949
- `Dask array <https://docs.dask.org/en/latest/array.html>`_ images
5050
- `vtk.vtkImageData <https://vtk.org>`_
5151
- `pyvista.UniformGrid <https://pyvista.org>`_
52-
- `vtkplotter.Volume <https://vtkplotter.embl.es/index.html>`_
52+
- `vedo.Volume <https://vedo.embl.es/index.html>`_
5353
- `pyimagej ImageJ / Fiji / ImageJ2 images <https://github.com/imagej/pyimagej>`_
5454
- Additional NumPy array-like objects
5555
- `SimpleITK.Image <https://simpleitk-prototype.readthedocs.io/en/latest/user_guide/plot_image.html#sphx-glr-user-guide-plot-image-py>`_
@@ -71,8 +71,8 @@ Interactive Jupyter_ widgets to visualize images, point sets, and meshes on the
7171
- `pyvista.PolyData <https://docs.pyvista.org/core/points.html>`_
7272
- `pyvista.StructuredGrid <https://docs.pyvista.org/core/point-grids.html#structured-grid-creation>`_
7373
- `pyvista.UnstructuredGrid <https://docs.pyvista.org/core/point-grids.html#unstructured-grid-creation>`_
74-
- `vtkplotter.Actor <https://vtkplotter.embl.es/index.html>`_
75-
- `vtkplotter.Assembly <https://vtkplotter.embl.es/index.html>`_
74+
- `vedo.Actor <https://vedo.embl.es/index.html>`_
75+
- `vedo.Assembly <https://vedo.embl.es/index.html>`_
7676
- `skan.csr.Skeleton <https://jni.github.io/skan/api/skan.csr.html#module-skan.csr>`_
7777

7878
- Exquisite volume rendering
@@ -285,7 +285,7 @@ After installation, try the following examples that demonstrate how to visualize
285285
- `pyvista StructuredGrid <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/pyvista.StructuredGrid.ipynb>`_
286286
- `pyvista UnstructuredGrid <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/pyvista.UnstructuredGrid.ipynb>`_
287287
- `pyvista LiDAR <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/pyvistaLiDAR.ipynb>`_
288-
- `vtkplotter actors and volumes <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/vtkplotter.ipynb>`_
288+
- `vedo actors and volumes <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/vedo.ipynb>`_
289289
- `skan segmentation skeleton <https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/SegmentationSkeleton.ipynb>`_
290290

291291
or how to:
@@ -364,6 +364,7 @@ Participation is welcome! For a development installation (requires `Node.js <htt
364364
jupyter nbextension enable --py --sys-prefix itkwidgets
365365
jupyter nbextension enable --py --sys-prefix widgetsnbextension
366366
python -m pytest
367+
python -m pytest --nbmake examples/*.ipynb
367368

368369
The above commands will setup your system for development with the Jupyter
369370
Notebook. In one terminal, start Jupyter::

0 commit comments

Comments
 (0)