Look at the following code, where I've used IPython.display:
from IPython.display import display, Image
display(Image(filename='MyImage.png'))
I also used matplotlib package with the following code:
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
plt.imshow(mpimg.imread('MyImage.png'))
but I didn't get the image, Nothing is displayed. Does anyone help me?