I tried to use IPython.display with the following code:
from IPython.display import display, Image display(Image(filename=\'MyImage.png\'))
If you use matplotlib, you need to show the image using plt.show() unless you are not in interactive mode. E.g.:
matplotlib
plt.show()
plt.figure() plt.imshow(sample_image) plt.show() # display it