Skip to content

Commit c333cc7

Browse files
committed
Update index-Colab.ipynb
use open_url to read image
1 parent 7a24783 commit c333cc7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

index-Colab.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
{
150150
"cell_type": "code",
151-
"execution_count": 4,
151+
"execution_count": null,
152152
"id": "71895a19-09a4-4118-a446-8e80082c03db",
153153
"metadata": {
154154
"id": "03a085f7"
@@ -181,7 +181,11 @@
181181
}
182182
],
183183
"source": [
184-
"img, path, filename = pcv.readimage(filename=args.image1, mode='gray')"
184+
"# If using this notebook locally or in parallel \n",
185+
"#img, path, filename = pcv.readimage(filename=args.image1, mode='gray')\n",
186+
"\n",
187+
"# For use in google colab \n",
188+
"img = pcv.io.open_url(url=\"https://raw.githubusercontent.com/danforthcenter/plantcv-tutorial-rice-chalkiness/main/img/rice-img.png\")\n"
185189
]
186190
},
187191
{

0 commit comments

Comments
 (0)