Skip to content

Commit b46eccc

Browse files
authored
Fix opencv-python issue in TCIA tutorial (#1693)
Fixes #1692 workaround for #1694 ### Description - Install dependency required by tcia_utils manually to avoid installing opencv-python - comment view command in the notebook ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` --------- Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent e18d615 commit b46eccc

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,14 @@
118118
"!python -m pip install -q pydicom pydicom-seg\n",
119119
"\n",
120120
"# Install tcia_utils to download the datasets.\n",
121-
"!python -m pip install --upgrade -q tcia_utils\n",
121+
"!python -m pip install --upgrade -q --no-deps tcia_utils\n",
122+
"\n",
123+
"# Install the dependency manually to avoid installing opencv-python.\n",
124+
"!python -m pip install -q plotly bs4 ipywidgets unidecode jsonschema\n",
125+
"!python -m pip install -q --no-deps rt-utils\n",
122126
"\n",
123127
"# This is the installation required for itkWidgets.\n",
124-
"!python -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a20\" imjoy_elfinder"
128+
"!python -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a23\" imjoy_elfinder"
125129
]
126130
},
127131
{
@@ -412,7 +416,7 @@
412416
},
413417
{
414418
"cell_type": "code",
415-
"execution_count": 11,
419+
"execution_count": null,
416420
"metadata": {
417421
"id": "RF4LqDs-emJR",
418422
"tags": []
@@ -441,9 +445,7 @@
441445
},
442446
{
443447
"data": {
444-
"application/javascript": [
445-
"window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")"
446-
],
448+
"application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")",
447449
"text/plain": [
448450
"<IPython.core.display.Javascript object>"
449451
]
@@ -579,9 +581,7 @@
579581
},
580582
{
581583
"data": {
582-
"application/javascript": [
583-
"window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")"
584-
],
584+
"application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")",
585585
"text/plain": [
586586
"<IPython.core.display.Javascript object>"
587587
]
@@ -654,9 +654,7 @@
654654
},
655655
{
656656
"data": {
657-
"application/javascript": [
658-
"window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")"
659-
],
657+
"application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")",
660658
"text/plain": [
661659
"<IPython.core.display.Javascript object>"
662660
]
@@ -764,7 +762,7 @@
764762
"name": "python",
765763
"nbconvert_exporter": "python",
766764
"pygments_lexer": "ipython3",
767-
"version": "3.8.10"
765+
"version": "3.10.12"
768766
}
769767
},
770768
"nbformat": 4,

0 commit comments

Comments
 (0)