Skip to content

Commit 2558875

Browse files
authored
Update notebook examples for 1.1.1 (#43)
1 parent 62689d7 commit 2558875

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

notebooks/gear-images-examples.ipynb

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"outputs": [],
119119
"source": [
120120
"print('Downloading the data into `datasets` folder..')\n",
121-
"url = 'https://privdatastorage.blob.core.windows.net/github/ipyplot/gear_images.zip'\n",
121+
"url = 'https://privdatastorage.blob.core.windows.net/github/ipyplot/gear_images.zip?sp=r&st=2022-03-15T07:56:45Z&se=2030-03-15T15:56:45Z&spr=https&sv=2020-08-04&sr=b&sig=%2BywohgAXA2E02DSVghZzHudlyvmM9kFRDydAfwtC9g8%3D'\n",
122122
"urllib.request.urlretrieve(url, datasets_dir + zip_filename)\n",
123123
"print(\"Done!\")"
124124
]
@@ -242,7 +242,7 @@
242242
},
243243
"outputs": [],
244244
"source": [
245-
"ipyplot.plot_class_tabs(images, labels, max_imgs_per_tab=5, img_width=150)"
245+
"ipyplot.plot_class_tabs(images, labels, max_imgs_per_tab=10, img_width=150)"
246246
]
247247
},
248248
{
@@ -282,7 +282,7 @@
282282
"\n",
283283
"images_np = np.asarray(images)\n",
284284
"\n",
285-
"ipyplot.plot_images(images_np, max_images=5)"
285+
"ipyplot.plot_images(images_np, max_images=10)"
286286
]
287287
},
288288
{
@@ -310,7 +310,7 @@
310310
"images_df['images'] = images\n",
311311
"images_df['labels'] = labels\n",
312312
"\n",
313-
"ipyplot.plot_images(images_df['images'], max_images=5)"
313+
"ipyplot.plot_images(images_df['images'], max_images=7)"
314314
]
315315
},
316316
{
@@ -352,7 +352,7 @@
352352
"\n",
353353
"images_pil = [Image.open(image) for image in images]\n",
354354
"\n",
355-
"ipyplot.plot_images(images_pil, max_images=5)"
355+
"ipyplot.plot_images(images_pil, max_images=10)"
356356
]
357357
},
358358
{
@@ -377,7 +377,7 @@
377377
"\n",
378378
"images_np = [np.asarray(image) for image in images_pil]\n",
379379
"\n",
380-
"ipyplot.plot_images(images_np, max_images=5)"
380+
"ipyplot.plot_images(images_np, max_images=10)"
381381
]
382382
},
383383
{
@@ -492,7 +492,7 @@
492492
"outputs": [],
493493
"source": [
494494
"ipyplot.plot_class_tabs(\n",
495-
" images, labels, max_imgs_per_tab=5, tabs_order=labels_list_filtered\n",
495+
" images, labels, max_imgs_per_tab=7, tabs_order=labels_list_filtered\n",
496496
")"
497497
]
498498
},
@@ -535,14 +535,14 @@
535535
"end_time": "2020-10-20T19:38:37.022119Z",
536536
"start_time": "2020-10-20T19:38:36.798582Z"
537537
},
538-
"scrolled": true
538+
"scrolled": false
539539
},
540540
"outputs": [],
541541
"source": [
542542
"ignore_list = [\"boots\", \"axes\", \"helmets\", \"insulated_jackets\", \"hardshell_jackets\", \"tents\"]\n",
543543
"\n",
544544
"ipyplot.plot_class_representations(\n",
545-
" images, labels, img_width=100, ignore_labels=ignore_list\n",
545+
" images, labels, img_width=150, ignore_labels=ignore_list\n",
546546
")"
547547
]
548548
},
@@ -594,15 +594,22 @@
594594
},
595595
"outputs": [],
596596
"source": [
597-
"ipyplot.plot_images(images, max_images=5, force_b64=True)"
597+
"ipyplot.plot_images(images, max_images=8, force_b64=True)"
598598
]
599+
},
600+
{
601+
"cell_type": "code",
602+
"execution_count": null,
603+
"metadata": {},
604+
"outputs": [],
605+
"source": []
599606
}
600607
],
601608
"metadata": {
602609
"kernelspec": {
603-
"display_name": "Python [conda env:ipyplot_env] *",
610+
"display_name": "Python [conda env:kaggle]",
604611
"language": "python",
605-
"name": "conda-env-ipyplot_env-py"
612+
"name": "conda-env-kaggle-py"
606613
},
607614
"language_info": {
608615
"codemirror_mode": {
@@ -614,7 +621,7 @@
614621
"name": "python",
615622
"nbconvert_exporter": "python",
616623
"pygments_lexer": "ipython3",
617-
"version": "3.7.0"
624+
"version": "3.7.6"
618625
}
619626
},
620627
"nbformat": 4,

0 commit comments

Comments
 (0)