title: Serving an Iframe in Google Colab Notebook: localhost refused to connect
body: <p>I am trying to serve some HTML from a Google Colab notebook using the following:</p>
  
  <pre><code>from IPython.display import IFrame
  
  IFrame(src='./output/index.html', width=700, height=600)
  </code></pre>
  
  <p>However, this throws <code>localhost refused to connect</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/91vPg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/91vPg.png" alt="enter image description here"></a></p>
  
  <p>Does anyone know how I can serve the html in index.html (which must load javascript) inside the Colab notebook? Any pointers would be hugely appreciated!</p>