how to insert an image in jupyter markdown in windows?

Viewed 8467

My OS is windows 10, I tried to insert an image in Jupiter markdown by the blow code but it didn't show anything:

![image](ComplexNoProcV3.png)

the image file is in the current working folder. However, same as below when I insert it in a code cell (not markdown) it shows properly:

from IPython.display import display, Image
display(Image(filename='ComplexNoProcV3.jpg'))

Below you can see the outcomes of the codes the markdown cell does not show anything!! What is the issue? how could have the picture in the markdown version?

enter image description here

3 Answers

Make the cell as Markdown and write below code(my tea.jpg image is in same directory where my notebook is):

<img src='tea.jpg' width="400" height="400">

enter image description here

Thanks for all who responded to the question. I finally insert an image through the menu, and I found that it should be as below (it could be due to new version of anaconda):

![tea.jpg](attachment:tea.jpg)

It works well on my side. if you want to display the only image on markdown cell, is correct code. The text in bracket may be any string. I guess you didn't "run the markdown cell". please try to change the cell type from code to markdown, then run it. enter image description here

Related