Today I was working with the MNIST handwritten digits data and wanted to display a few images in a Jupyter notebook. After looking at PIL, then Pillow, I found the easiest way is to just use Matplotlib.
Here’s a code snippet that let’s you do it.
Note: You may still need Pillow when working with Matplotlib. See explanation and requirements here: Image tutorial.