python display a png file code example
Example 1: python show png
%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
Example 2: python show png
from PIL import Image
image = Image.open('image.jpg')
image.show()