title: Ipywidgets with Google Colaboratory
body: <p>I am trying to use ipywidgets with Google Colaboratory, and (as with <a href="https://stackoverflow.com/questions/47230817/plotly-notebook-mode-with-google-colaboratory">plotly</a>) the simplest <a href="http://ipywidgets.readthedocs.io/en/stable/examples/Using%20Interact.html" rel="noreferrer">example from the docs</a> does not work. The code below shows a slider in a local notebook but only returns 10 and <code>&lt;function __main__.f&gt;</code> in a Google notebook.</p>
  
  <pre><code>!pip install ipywidgets
  
  from ipywidgets import interact
  
  def f(x):
    return x
  
  interact(f, x=10)
  </code></pre>
  
  <p>Is there another custom initialization that I could use to enable the widgets?</p>