How to Insert Images in Jupyter Notebook

Emily Ekdahl
Nov 11, 2020

--

Sometimes it is just easier to insert a picture than to explain with text or code comments. This brief article shows you how to insert images into Jupyter Notebooks!

Gonzalez (2016)

Markdown

First, set your cell to markdown!

Local Images

Assuming your file structure looks like this:

/
+-- your_jupyter_notebook_file.ipynb
+-- img
+-- image_file_name_here.png

Insert your image like this:

![Title](img/image_file_name_here.png)

Web Image

For web images, you can simply insert the url:

![Random Unsplash Image](https://source.unsplash.com/random)

--

--

Emily Ekdahl
Emily Ekdahl

Written by Emily Ekdahl

Senior Machine Learning Engineer

No responses yet