How to include two pictures side by side in Markdown for IPython Notebook (Jupyter)? How to include two pictures side by side in Markdown for IPython Notebook (Jupyter)? python python

How to include two pictures side by side in Markdown for IPython Notebook (Jupyter)?


You can create tables using pipes and dashes like this.

A | B- | - ![alt](yourimg1.jpg) | ![alt](yourimg2.jpg)

see Tables syntax


I don't have enough reputation to add comments, so I'll just put my 2 cents as a separate answer. I also found that JMann's solution didn't work, but if you wrap his implementation with table tags:

<table><tr><td> <img src="Nordic_trails.jpg" alt="Drawing" style="width: 250px;"/> </td><td> <img src="Nordic_trails.jpg" alt="Drawing" style="width: 250px;"/> </td></tr></table>

then it works.


JMann's solution didn't work for me. But this one worked

from IPython.display import HTML, displaydisplay(HTML("<table><tr><td><img src='img1'></td><td><img src='img2'></td></tr></table>"))

I took the idea from this notebook