Create a popup widget in IPython
<p>I'm trying to create a Popup widget in Jupyter as described in <a href="https://youtu.be/o7Tb7YhJZR0?t=26m21s" rel="nofollow">this vid</a>: </p>

<pre><code>from IPython.html import widgets
</code></pre>

<p>which gives the following warning: </p>

<blockquote>
  <p>ShimWarning: The <code>IPython.html</code> package has been deprecated. You should import from <code>notebook</code> instead. <code>IPython.html.widgets</code> has moved to <code>ipywidgets</code>. "<code>IPython.html.widgets</code> has moved to <code>ipywidgets</code>."</p>
</blockquote>

<p>However, <code>ipywidgets</code> doesn't have a popup widget and there is nothing in <a href="https://ipywidgets.readthedocs.io/en/latest/" rel="nofollow">its docs</a>. (By the way, <code>IPython.html.widgets</code> doesn't have a popup widget either)</p>

<p>How can I create a popup widget in jupyter?</p>

<hr>

<p><sub><strong>Versions</strong>:<br>
Jupyter 1.0.0<br>
IPython 5.1.0</sub></p>

<p>Searching in <a href="https://github.com/ipython/ipython/blob/aa586fd81940e557a1df54ecd0478f9d67dfb6b4/docs/source/whatsnew/version3_widget_migration.rst" rel="nofollow">IPython's repository</a> I found that.. : </p>

<blockquote>
  <p><strong>PopupWidget was removed</strong> from IPython. If you use the PopupWidget, try using a Box widget instead. If your notebook can't live without the popup functionality, subclass the Box widget (both in Python and JS) and use JQuery UI's draggable() and resizable() methods to mimic the behavior.</p>
</blockquote>

<p><sub>(emphasis mine)</sub></p>

<hr>

<h2>Why it was removed and future plans</h2>

<p><a href="https://github.com/ipython/ipython/pull/7281#issuecomment-68276486" rel="nofollow">@jdfreder's comment</a> in related discussion:</p>

<blockquote>
  <p>The popup widget is an oddball in the built-in widget collection. After talking to the others during the last dev meeting (or meeting before last, I forget which), we came to the conclusion that it is best to remove the popup widget altogether. However, the underlying API that allows one to implement the popup widget will not be removed, see PR #7341 . If we do include something like the popup widget again, it will be implemented from scratch, probably as a phosphor component (or something similar).</p>
</blockquote>

<p><a href="https://gitter.im/jupyter/jupyter?at=57e7075c7270539a6d843a4e" rel="nofollow">@Sylvain Corlay</a> in github chat: </p>

<blockquote>
  <p>We are moving away from bootstrapjs widgets. For the good cause
  bootstrap is a bad citizen of the browser. creates global variable etc..
  With jupyterlab richer layouts should be enabled.</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/e1QbQ.gif" rel="nofollow"><img src="http://i.stack.imgur.com/e1QbQ.gif" alt="enter image description here"></a></p>

python popup jupyter jupyter-notebook ipywidgets