|
79 | 79 | "source": [
|
80 | 80 | "# 1. Setup\n",
|
81 | 81 | "\n",
|
82 |
| - "These are the initial steps for running notebooks within various Jupyter environments.\n", |
83 |
| - "\n", |
84 |
| - "## Setup environment" |
| 82 | + "These are the initial steps for running notebooks within various Jupyter environments." |
85 | 83 | ]
|
86 | 84 | },
|
87 | 85 | {
|
88 |
| - "cell_type": "code", |
89 |
| - "execution_count": null, |
90 |
| - "metadata": { |
91 |
| - "id": "XFhjBkS35hYN" |
92 |
| - }, |
93 |
| - "outputs": [], |
| 86 | + "cell_type": "markdown", |
| 87 | + "metadata": {}, |
94 | 88 | "source": [
|
95 |
| - "import os\n", |
96 |
| - "\n", |
97 |
| - "# Upgrade pip, just in case.\n", |
98 |
| - "!python -m pip install --upgrade -q pip" |
| 89 | + "## Setup environment" |
99 | 90 | ]
|
100 | 91 | },
|
101 | 92 | {
|
|
112 | 103 | "# such as voxel image, image orientation, and image directions,\n",
|
113 | 104 | "# which are critical to image processing and display.\n",
|
114 | 105 | "\n",
|
| 106 | + "# Upgrade pip, just in case.\n", |
| 107 | + "!python -m pip install --upgrade -q pip\n", |
| 108 | + "\n", |
115 | 109 | "# installations required for monai\n",
|
116 | 110 | "!python -c \"import monai\" || pip install -q \"monai[nibabel,itk,tqdm,pandas,skimage]\"\n",
|
117 | 111 | "\n",
|
|
141 | 135 | "outputs": [],
|
142 | 136 | "source": [
|
143 | 137 | "import glob\n",
|
| 138 | + "import os\n", |
144 | 139 | "\n",
|
145 | 140 | "# Numpy for numpy.arrays\n",
|
146 | 141 | "import numpy as np\n",
|
|
163 | 158 | "# imports for monai\n",
|
164 | 159 | "import torch\n",
|
165 | 160 | "from monai.data import decollate_batch\n",
|
166 |
| - "from monai.bundle import ConfigParser, download" |
| 161 | + "from monai.bundle import ConfigParser, download\n", |
| 162 | + "\n", |
| 163 | + "from monai.config import print_config\n", |
| 164 | + "\n", |
| 165 | + "print_config()" |
167 | 166 | ]
|
168 | 167 | },
|
169 | 168 | {
|
|
0 commit comments