title: How to display two figures, side by side, in a Jupyter cell
body: <pre class="lang-py prettyprint-override"><code>import pandas as pd
  import seaborn as sns
  
  # load data
  df = sns.load_dataset('penguins', cache=False)
  
  sns.scatterplot(data=df, x='bill_length_mm', y='bill_depth_mm', hue='sex')
  plt.show()
  sns.scatterplot(data=df, x='flipper_length_mm', y='body_mass_g', hue='sex')
  plt.show()
  </code></pre>
  <p>When I draw two plots with seaborn, in one cell, in jupyter, I get this view:</p>
  <p><a href="https://i.stack.imgur.com/Cw4cu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cw4cu.png" alt="enter image description here" /></a></p>
  <p>I want to draw the plots, side by side, like this:</p>
  <p>plot1    plot2</p>
  <p>How I should do this?</p>
  <h3>Updated:</h3>
  <p>Not two plots on one figure, but two plots on two separate figures.</p>
  <ul>
  <li>This is not the solution being sought, because it's two plots on one figure.</li>
  </ul>
  <pre class="lang-py prettyprint-override"><code>fig, ax = plt.subplots(1,2)
  sns.plotType(someData, ax=ax[0])  # plot1
  sns.plotType(someData, ax=ax[1])  # plot2
  fig.show()
  </code></pre>
  <ul>
  <li>The solutions from the proposed duplicate <a href="https://stackoverflow.com/questions/21754976/ipython-notebook-arrange-plots-horizontally">ipython notebook arrange plots horizontally</a>, do not work
  <ul>
  <li>The option with <code>%html</code> causes the figures to plot on top of each other</li>
  <li>Additionally, other options were for <code>ipython</code>, not Jupyter, or recommended creating subplots..</li>
  </ul>
  </li>
  </ul>