title: How to embed HTML into IPython output?
body: <p>Is it possible to embed rendered HTML output into IPython output?</p>
  
  <p>One way is to use</p>
  
  <pre><code>from IPython.core.display import HTML
  HTML('&lt;a href="http://example.com"&gt;link&lt;/a&gt;')
  </code></pre>
  
  <p>or (IPython multiline cell alias)</p>
  
  <pre><code>%%html
  &lt;a href="http://example.com"&gt;link&lt;/a&gt;
  </code></pre>
  
  <p>Which return a formatted link, but</p>
  
  <ol>
  <li>This link doesn't open a browser with the webpage itself from <em>the console</em>. IPython notebooks support honest rendering, though.</li>
  <li>I'm unaware of how to render <code>HTML()</code> object within, say, a list or <code>pandas</code> printed table. You can do <code>df.to_html()</code>, but without making links inside cells.</li>
  <li>This output isn't interactive in the PyCharm Python console (because it's not QT).</li>
  </ol>
  
  <p>How can I overcome these shortcomings and make IPython output a bit more interactive?</p>