|
44 | 44 | "source": [ |
45 | 45 | "import numpy as np\n", |
46 | 46 | "\n", |
47 | | - "from ccfwidget import CCFWidget" |
| 47 | + "from ccfwidget import CCFWidget\n", |
| 48 | + "\n", |
| 49 | + "# required because CCFwidgets is not using latest version of collections.abc\n", |
| 50 | + "import collections\n", |
| 51 | + "import collections.abc\n", |
| 52 | + "collections.Sequence = collections.abc.Sequence" |
48 | 53 | ] |
49 | 54 | }, |
50 | 55 | { |
|
72 | 77 | "execution_count": 4, |
73 | 78 | "metadata": {}, |
74 | 79 | "outputs": [ |
75 | | - { |
76 | | - "name": "stderr", |
77 | | - "output_type": "stream", |
78 | | - "text": [ |
79 | | - "A newer version (0.62.2) of dandi/dandi-cli is available. You are using 0.61.2\n" |
80 | | - ] |
81 | | - }, |
82 | 80 | { |
83 | 81 | "name": "stdout", |
84 | 82 | "output_type": "stream", |
|
157 | 155 | { |
158 | 156 | "cell_type": "code", |
159 | 157 | "execution_count": 7, |
160 | | - "metadata": {}, |
161 | | - "outputs": [], |
| 158 | + "metadata": { |
| 159 | + "tags": [ |
| 160 | + "skip-execution" |
| 161 | + ] |
| 162 | + }, |
| 163 | + "outputs": [ |
| 164 | + { |
| 165 | + "ename": "", |
| 166 | + "evalue": "", |
| 167 | + "output_type": "error", |
| 168 | + "traceback": [ |
| 169 | + "\u001b[1;31mThe Kernel crashed while executing code in the current cell or a previous cell. \n", |
| 170 | + "\u001b[1;31mPlease review the code in the cell(s) to identify a possible cause of the failure. \n", |
| 171 | + "\u001b[1;31mClick <a href='https://aka.ms/vscodeJupyterKernelCrash'>here</a> for more info. \n", |
| 172 | + "\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details." |
| 173 | + ] |
| 174 | + } |
| 175 | + ], |
162 | 176 | "source": [ |
163 | 177 | "# the 'markers' parameter will expect an iterable where each point is represented as [x,y,z]\n", |
164 | 178 | "ccf = CCFWidget(markers=[points])" |
165 | 179 | ] |
166 | 180 | }, |
167 | 181 | { |
168 | 182 | "cell_type": "code", |
169 | | - "execution_count": 8, |
170 | | - "metadata": {}, |
| 183 | + "execution_count": 1, |
| 184 | + "metadata": { |
| 185 | + "tags": [ |
| 186 | + "skip-execution" |
| 187 | + ] |
| 188 | + }, |
171 | 189 | "outputs": [ |
172 | 190 | { |
173 | | - "data": { |
174 | | - "application/vnd.jupyter.widget-view+json": { |
175 | | - "model_id": "683c4a818ea14ff69df65c1d0d563866", |
176 | | - "version_major": 2, |
177 | | - "version_minor": 0 |
178 | | - }, |
179 | | - "text/plain": [ |
180 | | - "CCFWidget(children=(VBox(children=(Viewer(background=(0.85, 0.85, 0.85), camera=array([[ 1.3441567e+03, -2.172…" |
181 | | - ] |
182 | | - }, |
183 | | - "metadata": {}, |
184 | | - "output_type": "display_data" |
| 191 | + "ename": "NameError", |
| 192 | + "evalue": "name 'ccf' is not defined", |
| 193 | + "output_type": "error", |
| 194 | + "traceback": [ |
| 195 | + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", |
| 196 | + "\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", |
| 197 | + "Cell \u001b[1;32mIn[1], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[43mccf\u001b[49m\n", |
| 198 | + "\u001b[1;31mNameError\u001b[0m: name 'ccf' is not defined" |
| 199 | + ] |
185 | 200 | } |
186 | 201 | ], |
187 | 202 | "source": [ |
|
191 | 206 | ], |
192 | 207 | "metadata": { |
193 | 208 | "kernelspec": { |
194 | | - "display_name": "Python 3 (ipykernel)", |
| 209 | + "display_name": "Python 3", |
195 | 210 | "language": "python", |
196 | 211 | "name": "python3" |
197 | 212 | }, |
|
205 | 220 | "name": "python", |
206 | 221 | "nbconvert_exporter": "python", |
207 | 222 | "pygments_lexer": "ipython3", |
208 | | - "version": "3.10.8" |
| 223 | + "version": "3.9.13" |
209 | 224 | } |
210 | 225 | }, |
211 | 226 | "nbformat": 4, |
|
0 commit comments