xeus-python
xeus-python copied to clipboard
Interrupting kills the kernel
trafficstars
See https://github.com/jupyter/jupyter_client/pull/754.
Run this code in Jupyter Lab with a xeus-python (not raw) kernel:
import asyncio
async def main():
await asyncio.sleep(5)
await main()
and interrupt the execution before the execution completes. You should see "Kernel Restarting".
Actually this is not related to top-level await, the kernel dies even while interrupting this:
import time
time.sleep(100)