Add module for notebook integration and shortcuts for common executors
Currently you need to manually glue together the learner, executor and learner1D.run
in your own coroutine and launch the coroutine how you wish. This is useful for flexibility, but we should also include shortcuts:
- Bundle an executor, a function, and an invocation of
learner1D.run
together into a coroutine - Run the coroutine using
ioloop.until_completed()
, for contexts where there is no event loop currently running -
or Run the coroutine using
ioloop.create_task()
, for contexts where there is an event loop already running, and we are calling all this from a coroutine ourselves (jupyter) - Notebook shortcut to switch to an asyncio-based event loop with
%gui asyncio