|
30 | 30 | },
|
31 | 31 | "outputs": [],
|
32 | 32 | "source": [
|
33 |
| - "!pip install -q ipywidgets==7.6\n", |
| 33 | + "!pip install -q ipywidgets\n", |
34 | 34 | "!python -c \"import monai\" || pip install -q \"monai-weekly[nibabel]\"\n",
|
35 | 35 | "import monai\n",
|
36 | 36 | "from monai.apps.utils import download_url\n",
|
|
48 | 48 | "import numpy as np\n",
|
49 | 49 | "\n",
|
50 | 50 | "%matplotlib inline\n",
|
51 |
| - "from matplotlib import pyplot as plt\n", |
52 |
| - "from ipywidgets import interact, fixed" |
| 51 | + "from matplotlib import pyplot as plt" |
53 | 52 | ]
|
54 | 53 | },
|
55 | 54 | {
|
|
240 | 239 | " plt.show()\n",
|
241 | 240 | "\n",
|
242 | 241 | "\n",
|
243 |
| - "# generate the interactive display\n", |
244 |
| - "interact(\n", |
245 |
| - " transformation_display,\n", |
246 |
| - " img_path=fixed(f\"{root_dir}/SimpleITK.jpg\"),\n", |
247 |
| - " tx=(-128.0, 128.0, 2.0),\n", |
248 |
| - " ty=(-64.0, 64.0),\n", |
249 |
| - " theta=(-np.pi/4.0, np.pi/4.0)\n", |
250 |
| - ")" |
| 242 | + "# # umcomment the following to generate the interactive display\n", |
| 243 | + "# from ipywidgets import interact, fixed\n", |
| 244 | + "# interact(\n", |
| 245 | + "# transformation_display,\n", |
| 246 | + "# img_path=fixed(f\"{root_dir}/SimpleITK.jpg\"),\n", |
| 247 | + "# tx=(-128.0, 128.0, 2.0),\n", |
| 248 | + "# ty=(-64.0, 64.0),\n", |
| 249 | + "# theta=(-np.pi/4.0, np.pi/4.0)\n", |
| 250 | + "# )" |
251 | 251 | ]
|
252 | 252 | },
|
253 | 253 | {
|
|
689 | 689 | "name": "python",
|
690 | 690 | "nbconvert_exporter": "python",
|
691 | 691 | "pygments_lexer": "ipython3",
|
692 |
| - "version": "3.8.0" |
| 692 | + "version": "3.8.13" |
693 | 693 | },
|
694 | 694 | "widgets": {
|
695 | 695 | "application/vnd.jupyter.widget-state+json": {
|
|
0 commit comments