Skip to content

Commit f3d172e

Browse files
committed
Updated tcia_prostatex_prostate_mri_anatomy_model.ipynb
Fixed some dependency issues related to itkwidgets that were preventing the notebook from running.
1 parent 6e36c64 commit f3d172e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,21 @@
116116
"!python -c \"import cv2\" || pip install -q opencv-python-headless\n",
117117
"\n",
118118
"# These are the libraries used to read DICOM Seg objects.\n",
119-
"!python -m pip install -q pydicom pydicom-seg\n",
120-
"\n",
121-
"# Install tcia_utils to download the datasets.\n",
122-
"!python -m pip install --upgrade -q --no-deps tcia_utils\n",
119+
"!python -m pip install -q \"pydicom<3\" pydicom-seg\n",
123120
"\n",
124121
"# Install the dependency manually to avoid installing opencv-python.\n",
125-
"!python -m pip install -q plotly bs4 ipywidgets unidecode jsonschema\n",
122+
"!python -m pip install -q plotly bs4 unidecode\n",
126123
"!python -m pip install -q --no-deps rt-utils\n",
127124
"\n",
125+
"# Install tcia_utils to download the datasets.\n",
126+
"!python -m pip install --upgrade -q --no-deps tcia_utils\n",
127+
"\n",
128128
"# This is the installation required for itkWidgets.\n",
129-
"!python -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a23\" imjoy_elfinder"
129+
"!python -m pip install --upgrade --pre -q \"itkwidgets[all]\" imjoy_elfinder\n",
130+
"\n",
131+
"# TEMPORARY WORKAROUND TO RESOLVE: https://github.com/kirbyju/TCIA_Notebooks/issues/30\n",
132+
"!python -m pip uninstall -y -q zarr ngff_zarr\n",
133+
"!python -m pip install -q zarr ngff_zarr"
130134
]
131135
},
132136
{

0 commit comments

Comments
 (0)