Skip to content

Commit e9bbce6

Browse files
committed
update according to contrib guide
Signed-off-by: Wenqi Li <[email protected]>
1 parent 7632810 commit e9bbce6

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"Copyright (c) MONAI Consortium \n",
8+
"Licensed under the Apache License, Version 2.0 (the \"License\"); \n",
9+
"you may not use this file except in compliance with the License. \n",
10+
"You may obtain a copy of the License at \n",
11+
"&nbsp;&nbsp;&nbsp;&nbsp;http://www.apache.org/licenses/LICENSE-2.0 \n",
12+
"Unless required by applicable law or agreed to in writing, software \n",
13+
"distributed under the License is distributed on an \"AS IS\" BASIS, \n",
14+
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n",
15+
"See the License for the specific language governing permissions and \n",
16+
"limitations under the License.\n"
17+
]
18+
},
319
{
420
"cell_type": "markdown",
521
"metadata": {
@@ -63,7 +79,9 @@
6379
"source": [
6480
"# 1. Setup\n",
6581
"\n",
66-
"These are the initial steps for running notebooks within various Jupyter environments."
82+
"These are the initial steps for running notebooks within various Jupyter environments.\n",
83+
"\n",
84+
"## Setup environment"
6785
]
6886
},
6987
{
@@ -93,24 +111,25 @@
93111
"# that manages all DICOM field values, include acquistion details \n",
94112
"# such as voxel image, image orientation, and image directions,\n",
95113
"# which are critical to image processing and display.\n",
96-
"!{sys.executable} -m pip install --upgrade -q \"itk\"\n",
114+
"\n",
115+
"# installations required for monai\n",
116+
"!{sys.executable} -m pip install --upgrade -q \"monai[nibabel,itk,tqdm,pandas,skimage]\"\n",
97117
"\n",
98118
"# These are the libraries used to read DICOM Seg objects.\n",
99-
"!{sys.executable} -m pip install --upgrade -q pydicom\n",
100-
"!{sys.executable} -m pip install --upgrade -q pydicom-seg\n",
119+
"!{sys.executable} -m pip install --upgrade -q pydicom pydicom-seg\n",
101120
"\n",
102-
"# Install requests for downloaded data.\n",
121+
"# Install tcia_utils to download the datasets.\n",
103122
"!{sys.executable} -m pip install --upgrade -q tcia_utils\n",
104123
"\n",
105-
"# Install for pandas dataframes\n",
106-
"!{sys.executable} -m pip install --upgrade -q pandas\n",
107-
"\n",
108124
"# This is the installation required for itkWidgets.\n",
109-
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a20\" imjoy_elfinder\n",
110-
"\n",
111-
"# installations required for monai\n",
112-
"!{sys.executable} -m pip install --upgrade -q \"monai[nibabel,itk,tqdm]\"\n",
113-
"!{sys.executable} -m pip install -q scikit-image"
125+
"!{sys.executable} -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a20\" imjoy_elfinder"
126+
]
127+
},
128+
{
129+
"cell_type": "markdown",
130+
"metadata": {},
131+
"source": [
132+
"## Setup imports"
114133
]
115134
},
116135
{

0 commit comments

Comments
 (0)