Skip to content

Instantly share code, notes, and snippets.

@d-v-b
Created January 26, 2016 20:22
Show Gist options
  • Save d-v-b/fe97ef99261db453b547 to your computer and use it in GitHub Desktop.
Save d-v-b/fe97ef99261db453b547 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
from ipywidgets import interact
%matplotlib inline
def browse_images(im):
n = len(im)
def view_image(i):
plt.figure()
plt.imshow(im[i])
plt.show()
interact(view_image, i=(0, n-1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment