title: jupyterlab interactive plot
body: <p>With old Jupyter notebooks, I could create interactive plots via:</p>
  <pre><code>import matplotlib.pyplot as plt
  %matplotlib notebook
  x = [1,2,3]
  y = [4,5,6]
  plt.figure()
  plt.plot(x,y)
  </code></pre>
  <p>However, in JupyterLab, this gives an error:</p>
  <pre><code>JavaScript output is disabled in JupyterLab
  </code></pre>
  <p>I have also tried the magic (with <a href="https://github.com/matplotlib/jupyter-matplotlib" rel="nofollow noreferrer" title="jupyter-matplotlib"><code>jupyter-matplotlib</code></a> installed):</p>
  <pre><code>%matplotlib ipympl
  </code></pre>
  <p>But that just returns:</p>
  <pre><code>FigureCanvasNbAgg()
  </code></pre>
  <p>Inline plots work, but they are not interactive plots:</p>
  <pre><code>%matplotlib inline
  </code></pre>