jupyter_ui_poll.run_ui_poll_loop
- jupyter_ui_poll.run_ui_poll_loop(f, sleep=0.02, n=1)[source]
Repeatedly call
f()until it returns something other thanNonewhile also responding to widget events.This blocks execution of cells below in the notebook while still preserving interactivity of jupyter widgets.
- Parameters:
- Return type:
TypeVar(T)- Returns:
First non-
Nonevalue returned fromf()