title: Place ipywidgets into HTML into Jupyter notebook
body: <p>With the following minimal example, I can create buttons which interact with the Jupyter notebook and an HTML table, which is displayed in the notebook.</p>
  
  <pre><code>import ipywidgets
  from IPython.display import display
  
  from IPython.core.display import HTML
  
  def func(btn):
      print('Hi!')
  
  btn1 = ipywidgets.Button(description="Click me!")
  btn1.on_click(func)
  btn2 = ipywidgets.Button(description="Click me!")
  btn2.on_click(func)
  display(btn1)
  display(btn2)
  
  display(HTML(
          '&lt;table&gt;' +
          '&lt;tr&gt;&lt;td&gt;Something here&lt;/td&gt;&lt;td&gt;Button 1 here&lt;/td&gt;&lt;/tr&gt;' +
          '&lt;tr&gt;&lt;td&gt;Something here&lt;/td&gt;&lt;td&gt;Button 2 here&lt;/td&gt;&lt;/tr&gt;' +
          '&lt;/table&gt;'
      ))
  </code></pre>
  
  <p>The produced result is:
  <a href="https://i.stack.imgur.com/Zytdx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Zytdx.png" alt="screenshot of table and buttons"></a></p>
  
  <p>I now would like to place the buttons in the html table. I tried investigating the method <code>Widget._ipython_display_()</code> but this does not allow me to use the button inside my own html table.</p>
  
  <p>(Please see the small table as an example. I want to place the buttons in a large table and use the buttons to delete rows from a database.)</p>
  
  <p>In <a href="https://stackoverflow.com/questions/37013489/how-to-alight-and-place-ipywidgets">this question</a>, the wanted to know, how to place widgets relative to each other. Here, I want to place the widgets inside other HTML code.</p>