Why does IPython notebook only output one DIV from this code? <p>In an IPython notebook I input this code in a cell:</p> <pre><code>from IPython.display import HTML HTML("""&lt;div&gt;One&lt;/div&gt;""") HTML("""&lt;div&gt;Two&lt;/div&gt;""") </code></pre> <p>How come the output cell only contains the second div?</p> <p>EDIT. @Dunno has shown how I can put all the html into one <code>HTML()</code> and both elements are rendered, but I still don't understand what's going on. Here's a more general case:</p> <p>When I enter this in an input cell:</p> <pre><code>1 2 3 </code></pre> <p>The output is </p> <pre><code>3 </code></pre> <p>But if I enter the following:</p> <pre><code>print 1 print 2 print 3 </code></pre> <p>Then I get this output:</p> <pre><code>1 2 3 </code></pre> <p>What's the difference? Is IPython notebook only evaluating the last statement when I don't use <code>print</code> statements? Or is each subsequent evaluation overwriting the previous one?</p>