Is there a pure Markdown way to include two images side by side in Jupyter?

我的未来我决定 提交于 2020-07-09 06:24:27

问题


There is a useful Python solution here to put two images side by side in the notebook, but is there a language agnostic way that does the trick using only Jupyter's own markdown? Something like

![](path/to/image1) # insert magic here # ![](path/to/image2)

that displays the images side by side?

This would be useful in my case cause I would prefer not to break a markdown cell into two and put code in between, but I also would find this helpful in case the notebook is not running Python. I personally run Julia quite a lot.


回答1:


A possible solution would be using img tags with the same align attribute:

<img src="path/to/image1" align="left"/><img src="path/to/image2" align="left"/>


来源:https://stackoverflow.com/questions/50025858/is-there-a-pure-markdown-way-to-include-two-images-side-by-side-in-jupyter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!