This snippet I often use to output a bunch of sample images in jupyter notebook.
%matplotlib inline
from matplotlib import pyplot as plt
_, axs = plt.subplots(1, 10, figsize=(32, 32))
axs = axs.flatten()
for img, ax in zip(example_images, axs):
ax.imshow(img)
plt.show()
print(example_labels)