title: IPython: ipywidgets bug - Code working on Goolge Colab, but not on Jupyter Notebook (tested on 2 different PCs)?
body: <p>This code is a "Filter as you type" textbox example. It works fine on Google Colab, but not on Jupyter Notebook. I tried it on 2 different computers (and on 2 different browsers) that have Jupyter Notebook installed and the 'out' widget only displays the textbox but nothing else. Any idea how to fix this? </p>
  
  <p>I have tried pip uninstall ipywidgets then install again without success.</p>
  
  <p>Thanks.</p>
  
  <pre><code>import pandas as pd, IPython.display, ipywidgets as widgets 
  out = widgets.Output()
  
  
  df = pd.DataFrame ({'PLAYER':['MOHAMED SALAH', 'MESSI', 'MO SALAH', 'RONALDO', 'PELE', 'PEPE', 'MANE', 'RAMREZ']})
  
  textbox = widgets.Text(value='', description='Player:')
  display(textbox)
  
  def display_result(value):
      value = str(value['new']).upper() 
      if "{" not in value:
          result = df[(df['PLAYER'].str.contains(value))]  
          if result.shape[0]&gt;0:
              with out:
                  out.clear_output()
                  display(result)
  
  display(out)
  textbox.observe(display_result)
  </code></pre>
  
  <p>This is the output from Google Colab:</p>
  
  <p><a href="https://i.stack.imgur.com/MeORR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MeORR.png" alt="The first picture is from Google Colab output:"></a></p>
  
  <p>This is the output from Jupyter Notebook:</p>
  
  <p><a href="https://i.stack.imgur.com/s6N4r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s6N4r.png" alt="enter image description here"></a></p>