Embed images

You learned in earlier lessons that it is possible to execute code that creates images and to display those images in your notebook.

It is also possible to import images, videos, and other components and to display those components in your notebook.

To keep it simple and to avoid broken links in the future, the code shown below imports an image file from the current working directory and displays it.

It is also possible to use similar code to import images from external web addresses and to display those images as well. Note, however, as with all web addresses, the links to those images may become broken at some point in the future.

In [1]:
from IPython.core.display import Image
Image('EmbedImage01.jpg')
Out[1]:

Housekeeping material

Author: Prof. Richard G. Baldwin

Affiliation: Professor of Computer Information Technology at Austin Community College in Austin, TX.

File: EmbedImage01.jpg.html

Revised: 05/11/18

Copyright 2018 Richard G. Baldwin