Inserting image into IPython notebook markdown

后端 未结 13 1616
面向向阳花
面向向阳花 2020-12-07 06:51

I am starting to depend heavily on the IPython notebook app to develop and document algorithms. It is awesome; but there is something that seems like it should be possible,

13条回答
  •  生来不讨喜
    2020-12-07 07:26

    Most of the answers given so far go in the wrong direction, suggesting to load additional libraries and use the code instead of markup. In Ipython/Jupyter Notebooks it is very simple. Make sure the cell is indeed in markup and to display a image use:

    ![alt text](imagename.png "Title")
    

    Further advantage compared to the other methods proposed is that you can display all common file formats including jpg, png, and gif (animations).

提交回复
热议问题