Skip to content

Latest commit

 

History

History
26 lines (11 loc) · 1.1 KB

README.md

File metadata and controls

26 lines (11 loc) · 1.1 KB

Async GUI IPython Kernel

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.

Demo

Example Async Widget

Quickstart

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'.

Disclaimer

This is just an untested hack that could be useful.