|
18 | 18 | "metadata": {},
|
19 | 19 | "outputs": [],
|
20 | 20 | "source": [
|
21 |
| - "try:\n", |
22 |
| - " from urllib.request import urlretrieve\n", |
23 |
| - "except ImportError:\n", |
24 |
| - " from urllib import urlretrieve\n", |
| 21 | + "from urllib.request import urlretrieve\n", |
25 | 22 | "import os\n",
|
26 | 23 | "\n",
|
27 | 24 | "import itk\n",
|
|
50 | 47 | {
|
51 | 48 | "data": {
|
52 | 49 | "application/vnd.jupyter.widget-view+json": {
|
53 |
| - "model_id": "5cd80ad0009c484fa13efdc01518b414", |
| 50 | + "model_id": "e276ebbbb0d0453f912d6211ca340e7d", |
54 | 51 | "version_major": 2,
|
55 | 52 | "version_minor": 0
|
56 | 53 | },
|
57 |
| - "text/html": [ |
58 |
| - "<p>Failed to display Jupyter Widget of type <code>Viewer</code>.</p>\n", |
59 |
| - "<p>\n", |
60 |
| - " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", |
61 |
| - " that the widgets JavaScript is still loading. If this message persists, it\n", |
62 |
| - " likely means that the widgets JavaScript library is either not installed or\n", |
63 |
| - " not enabled. See the <a href=\"https://ipywidgets.readthedocs.io/en/stable/user_install.html\">Jupyter\n", |
64 |
| - " Widgets Documentation</a> for setup instructions.\n", |
65 |
| - "</p>\n", |
66 |
| - "<p>\n", |
67 |
| - " If you're reading this message in another frontend (for example, a static\n", |
68 |
| - " rendering on GitHub or <a href=\"https://nbviewer.jupyter.org/\">NBViewer</a>),\n", |
69 |
| - " it may mean that your frontend doesn't currently support widgets.\n", |
70 |
| - "</p>\n" |
71 |
| - ], |
72 | 54 | "text/plain": [
|
73 |
| - "Viewer(image=<itkImagePython.itkImageUC2; proxy of <Swig Object of type 'itkImageUC2 *' at 0x7ff04954d720> >)" |
| 55 | + "Viewer(geometries=[], gradient_opacity=0.22, point_sets=[], rendered_image=<itkImagePython.itkImageUC2; proxy …" |
74 | 56 | ]
|
75 | 57 | },
|
76 | 58 | "metadata": {},
|
|
81 | 63 | "image = itk.imread(file_name)\n",
|
82 | 64 | "view(image)"
|
83 | 65 | ]
|
84 |
| - }, |
85 |
| - { |
86 |
| - "cell_type": "code", |
87 |
| - "execution_count": null, |
88 |
| - "metadata": {}, |
89 |
| - "outputs": [], |
90 |
| - "source": [] |
91 | 66 | }
|
92 | 67 | ],
|
93 | 68 | "metadata": {
|
94 | 69 | "kernelspec": {
|
95 |
| - "display_name": "Python 2", |
| 70 | + "display_name": "Python 3", |
96 | 71 | "language": "python",
|
97 |
| - "name": "python2" |
| 72 | + "name": "python3" |
98 | 73 | },
|
99 | 74 | "language_info": {
|
100 | 75 | "codemirror_mode": {
|
101 | 76 | "name": "ipython",
|
102 |
| - "version": 2 |
| 77 | + "version": 3 |
103 | 78 | },
|
104 | 79 | "file_extension": ".py",
|
105 | 80 | "mimetype": "text/x-python",
|
106 | 81 | "name": "python",
|
107 | 82 | "nbconvert_exporter": "python",
|
108 |
| - "pygments_lexer": "ipython2", |
109 |
| - "version": "2.7.13" |
| 83 | + "pygments_lexer": "ipython3", |
| 84 | + "version": "3.7.5" |
110 | 85 | }
|
111 | 86 | },
|
112 | 87 | "nbformat": 4,
|
113 |
| - "nbformat_minor": 2 |
| 88 | + "nbformat_minor": 4 |
114 | 89 | }
|
0 commit comments