File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 99 "source" : [
1010 " import sys\n " ,
1111 " \n " ,
12- " !{sys.executable} -m pip install itkwidgets imageio"
12+ " !{sys.executable} -m pip install --pre itkwidgets imageio"
1313 ]
1414 },
1515 {
1616 "cell_type" : " code" ,
17- "execution_count" : 1 ,
17+ "execution_count" : 2 ,
1818 "id" : " c3c5eb6e" ,
1919 "metadata" : {},
2020 "outputs" : [],
2121 "source" : [
2222 " from itkwidgets import view\n " ,
2323 " \n " ,
24- " import imageio.v2 as imageio"
24+ " try:\n " ,
25+ " import imageio.v2 as imageio\n " ,
26+ " except ImportError:\n " ,
27+ " # Colab\n " ,
28+ " import imageio"
2529 ]
2630 },
2731 {
2832 "cell_type" : " code" ,
29- "execution_count" : 2 ,
33+ "execution_count" : 3 ,
3034 "id" : " 1bc45207" ,
3135 "metadata" : {},
3236 "outputs" : [],
3640 },
3741 {
3842 "cell_type" : " code" ,
39- "execution_count" : 3 ,
43+ "execution_count" : 4 ,
4044 "id" : " 26582452" ,
4145 "metadata" : {},
4246 "outputs" : [
4347 {
4448 "data" : {
4549 "application/javascript" : [
46- " window.connectPlugin && window.connectPlugin(\" 06b07aba-462c-4dda-971f-55639d05260a \" )"
50+ " window.connectPlugin && window.connectPlugin(\" b48ca497-8150-4d41-ad45-5dfaf9daf43c \" )"
4751 ],
4852 "text/plain" : [
4953 " <IPython.core.display.Javascript object>"
5559 {
5660 "data" : {
5761 "text/html" : [
58- " <div id=\" 1ac749d7-0651-47fa-92e5-4115ab117fa8 \" ></div>"
62+ " <div id=\" d45ae1b1-233a-4f6b-830b-40601ed80560 \" ></div>"
5963 ],
6064 "text/plain" : [
6165 " <IPython.core.display.HTML object>"
6771 {
6872 "data" : {
6973 "text/plain" : [
70- " <itkwidgets.viewer.Viewer at 0x7f47fc869f10 >"
74+ " <itkwidgets.viewer.Viewer at 0x7f5804bfbd60 >"
7175 ]
7276 },
73- "execution_count" : 3 ,
77+ "execution_count" : 4 ,
7478 "metadata" : {},
7579 "output_type" : " execute_result"
7680 }
8286 },
8387 {
8488 "cell_type" : " code" ,
85- "execution_count" : 4 ,
89+ "execution_count" : null ,
8690 "id" : " 5ffa3b37-ae13-4c5d-93e1-64d36c99b196" ,
8791 "metadata" : {},
8892 "outputs" : [],
You can’t perform that action at this time.
0 commit comments