Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupting kills the kernel #527

Open
davidbrochart opened this issue Mar 14, 2022 · 1 comment
Open

Interrupting kills the kernel #527

davidbrochart opened this issue Mar 14, 2022 · 1 comment

Comments

@davidbrochart
Copy link

See jupyter/jupyter_client#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
Copy link
Author

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

import time

time.sleep(100)

@davidbrochart davidbrochart changed the title Interrupting a top-level coroutine kills the kernel Interrupting kills the kernel Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant