I tried to use IPython.display with the following code:
from IPython.display import display, Image display(Image(filename=\'MyImage.png\'))
import IPython.display as display from PIL import Image image_path = 'my_image.jpg' display.display(Image.open(image_path))