xeus-python icon indicating copy to clipboard operation
xeus-python copied to clipboard

Interrupting kills the kernel

Open davidbrochart opened this issue 3 years ago • 1 comments
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".

davidbrochart avatar Mar 14 '22 17:03 davidbrochart

Actually this is not related to top-level await, the kernel dies even while interrupting this:

import time

time.sleep(100)

davidbrochart avatar Feb 20 '24 21:02 davidbrochart