Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to insert an image in jupyter markdown in windows?

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

like image 449
Hamidreza Ahady Dolatsara Avatar asked Mar 03 '23 05:03

Hamidreza Ahady Dolatsara


2 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

like image 77
Vishal Upadhyay Avatar answered Mar 06 '23 18:03

Vishal Upadhyay


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)
like image 42
Hamidreza Ahady Dolatsara Avatar answered Mar 06 '23 19:03

Hamidreza Ahady Dolatsara