In an exciting development, recent versions of IPython include the capability to display images, video, sound, and other media directly in the notebook. The classes that support the display system are in the
IPython.display module. In this section, we will discuss some of the supported formats.
from IPython.display import Image Image('character.png')
It is also possible to store the image in a variable to be displayed at a later time:
img = Image('character.png')
character.png file can be downloaded from the web page of this book.
To display the image, we can use either
display(img). The following image is displayed: