Skip to content

Commit

Permalink
Do not use --pre with itkwidgets install, upgrade versions
Browse files Browse the repository at this point in the history
`pip install --pre` is likely to pick up zarr version 3 pre-release
packages which are unstable. To address #30.

Also bump `itk` and `itkwidgets` to their latest versions, which contain
many improvements.
  • Loading branch information
thewtex committed Oct 7, 2024
1 parent e7eb093 commit 306b5fa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
6 changes: 3 additions & 3 deletions TCIA_MONAI_Model_Zoo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"# that manages all DICOM field values, include acquistion details \n",
"# such as voxel image, image orientation, and image directions,\n",
"# which are critical to image processing and display.\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itk==5.3.0\"\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itk==5.4.0\"\n",
"\n",
"# These are the libraries used to read DICOM Seg objects.\n",
"!{sys.executable} -m pip install --upgrade --pre -q pydicom\n",
Expand Down Expand Up @@ -280,7 +280,7 @@
"outputs": [],
"source": [
"# This is the installation required for itkWidgets.\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a48\" imjoy_elfinder"
"!{sys.executable} -m pip install --upgrade -q \"itkwidgets[all]==1.0a49\" imjoy_elfinder"
]
},
{
Expand Down Expand Up @@ -791,4 +791,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
9 changes: 3 additions & 6 deletions TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,8 @@
"!{sys.executable} -m pip install --upgrade -q --no-deps tcia_utils\n",
"\n",
"# This is the installation required for itkWidgets.\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]\" imjoy_elfinder\n",
"\n",
"# TEMPORARY WORKAROUND TO RESOLVE: https://github.com/kirbyju/TCIA_Notebooks/issues/30\n",
"!pip uninstall -y zarr ngff_zarr\n",
"!pip install zarr ngff_zarr"
"!{sys.executable} -m pip install --upgrade -q \"itkwidgets[all]==1.0a53\" imjoy_elfinder\n",
"\n"
]
},
{
Expand Down Expand Up @@ -822,4 +819,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
6 changes: 3 additions & 3 deletions TCIA_RTStruct_SEG_Visualization_with_itkWidgets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"# that manages all DICOM field values, include acquistion details \n",
"# such as voxel image, image orientation, and image directions,\n",
"# which are critical to image processing and display\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itk==5.3.0\"\n",
"!{sys.executable} -m pip install --upgrade -q \"itk==5.4.0\"\n",
"\n",
"# Install rt-utils for reading DICOM RT-Struct objects.\n",
"!{sys.executable} -m pip install --upgrade -q rt-utils\n",
Expand Down Expand Up @@ -259,7 +259,7 @@
"outputs": [],
"source": [
"# This is the installation required for itkWidgets.\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a49\" imjoy_elfinder"
"!{sys.executable} -m pip install --upgrade -q \"itkwidgets[all]==1.0a53\" imjoy_elfinder"
]
},
{
Expand Down Expand Up @@ -1398,4 +1398,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
6 changes: 3 additions & 3 deletions TCIA_STL_Visualization_with_itkWidgets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"# that manages all DICOM field values, include acquistion details \n",
"# such as voxel image, image orientation, and image directions,\n",
"# which are critical to image processing and display.\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itk==5.3.0\""
"!{sys.executable} -m pip install --upgrade -q \"itk==5.4.0\""
]
},
{
Expand Down Expand Up @@ -295,7 +295,7 @@
"outputs": [],
"source": [
"# This is the installation required for itkWidgets\n",
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a49\" imjoy_elfinder"
"!{sys.executable} -m pip install --upgrade -q \"itkwidgets[all]==1.0a53\" imjoy_elfinder"
]
},
{
Expand Down Expand Up @@ -583,4 +583,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dependencies:
- torch
- monai
- requests
- itk==5.3.0
- itkwidgets[all]==1.0a49
- itk==5.4.0
- itkwidgets[all]==1.0a53
- imjoy-jupyterlab-extension
- pydicom
- matplotlib
Expand Down

0 comments on commit 306b5fa

Please sign in to comment.