WIP: event loop in the notebook.
WIP: event loop in the notebook.