Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to embed image or picture in jupyter notebook, either from a local machine or from a web resource?

Asked by Dipika Agarwal Jul 12, 2021 1.3K views 1 answer
Share

About this question

I would like to include an image in a Jupyter notebook.

If I did the following, it works :

from IPython.display import Image 
Image("img/picture.png")

But I would like to include the images in a markdown cell and the following code gives a 404 error :

![title]("img/picture.png")

I also tried

![texte]("http://localhost:8888/img/picture.png")

But I still get the same error :

404 GET /notebooks/"/home/user/folder/img/picture.png" (127.0.0.1) 2.74ms referer=http://localhost:8888/notebooks/notebook.ipyn

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.