Insert an image in Jupyter
Updated August 29, 2026
Markdown is the simplest way to display a local image in a notebook:

The path is relative to the notebook file. A code cell can display an image with IPython:
from IPython.display import Image, display
display(Image(filename="images/sales-by-month.png", width=700))
For a generated Matplotlib figure, call plt.show() in the cell. Use a meaningful alt description in Markdown, keep the image inside the project directory, and check the result after exporting. Remote image URLs require network access and may not be available in an offline or restricted notebook.
If the image is not shown, confirm the exact filename and case, inspect Path.cwd(), and check that the Jupyter server can read the file. Do not use a data URL for a large image unless you have a specific reason; it makes the notebook harder to review and version.
Sources
related.
Ruslan Osipov
About the author