This enables the IPython kernel to receive Comm
events while waiting for cells.
Currently, the IPython kernel will only process one message at a time. Including Comm events that are naturally asynchronous. This means you are currently unable to await changes in your ipywidgets
. If you do, the await
statement will hang indefinitely.
Being able to wait on user input in Jupyter opens up possibilities for building interfaces. For example, in the GIF below, you can await
on a GUI that takes a series of inputs.
pip install git+git://github.com/sonthonaxrk/async_gui_ipython_kernel.git#egg=async_gui_ipython_kernel
Make sure to set your kernel to 'Async GUI kernel'.
This is just an untested hack that could be useful.