Display PIL images on Jupyter

demo

show_Pillow_on_Jupyter.png

nbviewer http://nbviewer.jupyter.org/gist/Tatejimaru/9272c82e2d85a7498901

Method

Here we use matplotlib's ʻimshow` function.

from PIL import Image
import matplotlib.pyplot as plt
import numpy as np

im = Image.open("hoge.png ", "r")
plt.imshow(np.array(im))

reference

python - How to show PIL Image in ipython notebook - Stack Overflow http://stackoverflow.com/questions/26649716/how-to-show-pil-image-in-ipython-notebook

Recommended Posts

Display PIL images on Jupyter
Label images on jupyter lab
Golang on jupyter
Display the graph of tensorBoard on jupyter
Jupyter on AWS
Display histogram / scatter plot on Jupyter Notebook
Understand how to display images on Jupyter (utilization of imshow / matplotlib of OpenCV)
Install matplotlib and display graph on Jupyter Notebook
Simply display a line graph on Jupyter Notebook
Hello X3DOM on Jupyter
Install octave_kernel on Jupyter [additional]
Run Jupyter on Ubuntu on Windows
[Blender Python] Display images on 3D View using OpenGL (bgl)
Create a function to display images like Jupyter / RStudio [Docker]
[Memo] Display Jupyter Notebook on PC in monospaced font (Mac)
Display HTML in Jupyter notebook
Smoothly reload modules on jupyter
High charts on Jupyter notebook
View PDF on Jupyter Notebook
Display GUI messages on Ubuntu
Unable to display tensorboard in jupyter notebook on docker (solved)
Run Jupyter Notebook on windows
Real-time display of video acquired from webcam on Jupyter notebook (Python3)
Formatting with autopep8 on Jupyter notebook
Display multiple markers on Google Map
Use jupyter on AWS GPU instance
Run azure ML on jupyter notebook
Display the absolute path on the Finder
Try running Jupyter Notebook on Mac
I want to display an image on Jupyter Notebook using OpenCV (mac)
[Android] Display images on the web in the info Window of Google Map