I am trying to get output from my ipywidgets widgets in Microsoft Azure Notebooks running Jupyter Notebooks in Python 3.6. However, it does not return new values when I get them. This also applies to the event handlers/interact never being called for other widgets.
I have tried putting in different initial values, using different types of widgets (Text
, Textarea
, Checkbox
, Button
, ToggleButton
). I have tried getting the w.value
, ipywidgets.interact
, w.observe
, and w.on_click
on Buttons.
A test that I did:
import time
import ipywidgets as widgets
from IPython.display import display
w = widgets.Text(disabled=False)
display(w)
while True:
print(w.value)
time.sleep(1)
I expect that when I enter something into the Text
field, that it will output that text, but instead it continues printing out what it started with. There are no errors. So, for the above example, regardless of what I input into the resultant Text field, all that is printed is empty lines.