Add
plt.show()
at the end.
Full code - tested on Linux Mint 20
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
im = Image.open('test/lenna.png')
pic = np.asarray(im)
plt.imshow(pic)
plt.show()
Image lenna.png from Wikipedia: lenna
