You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromipywidgetsimportIntsInputfromIPython.displayimportdisplayin_value=IntsInput(description="value")
before=in_value.valueprint('before': before)
display(in_value)
whilebefore==in_value.value:
... # blocking until value is changedprint('after', in_value.value)
Obviously, the loop will blocking forever as in_value.value won't be evaluated again. Is there any way to make it work as simple as possible?
It looks like not possible as the observer is running on the main thread. Thus the following method also not work.
Hi @link89 this looks like a question about ipywidgets. There is already an issue about blocking execution in that repository. Please add your thoughts there, thank you!
Given the following code:
Obviously, the loop will blocking forever as
in_value.value
won't be evaluated again. Is there any way to make it work as simple as possible?It looks like not possible as the observer is running on the main thread. Thus the following method also not work.
The text was updated successfully, but these errors were encountered: