ipywidgets for images

Box.__getitem__[source]

Box.__getitem__(i)

widget[source]

widget(im, *args, **layout)

Convert anything that can be displayed by IPython into a widget

im = Image.open('images/puppy.jpg').to_thumb(256,512)
VBox([widgets.HTML('Puppy'),
      widget(im, max_width="192px")])
<<<<<<< local
=======
>>>>>>> remote

carousel(children=(), **layout)

A horizontally scrolling carousel

ts = [VBox([widget(im, max_width='192px'), Button(description='click')])
      for o in range(3)]

carousel(ts, width='450px')
<<<<<<< local
=======
>>>>>>> remote

class ImagesCleaner[source]

ImagesCleaner(opts=(), height=128, width=256, max_n=30)

A widget that displays all images in fns along with a Dropdown

fns = get_image_files('images')
w = ImagesCleaner(('A','B'))
w.set_fns(fns)
w
<<<<<<< local
=======
>>>>>>> remote
w.delete(),w.change()
((#1) [1], (#0) [])

class ImageClassifierCleaner[source]

ImageClassifierCleaner(learn, opts=(), height=128, width=256, max_n=30) :: GetAttr

A widget that provides an ImagesCleaner with a CNN Learner