title: Accessing Jupyter notebook widgets values
body: <p>While trying to use the Jupyter widgets to control a different function I am stumbling over this issue and am searching for a workaround. </p>
  
  <p>The widget is displayed and I can interact with it just fine. Reading the value, as stated in the documentation using <code>w.value</code> also works. But now reading the value continuously in a loop does not work. Whereas I uncheck the box the value in the while loop never changes. </p>
  
  <p>How can I control python functions via the widgets if they are not updated with the current state of the widgets?</p>
  
  <p><a href="https://i.stack.imgur.com/dJyvn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dJyvn.png" alt="enter image description here"></a></p>