ipython / ipython/ipykernel

Cannot interrupt top-level coroutine

Open
#881 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

It looks like interrupting a cell execution which consists of awaiting a top-level coroutine, e.g.:
```python
import asyncio

async def main():
await asyncio.sleep(5)

await main()
```
doesn't take effect immediately, but once the coroutine completes execution.

See #880 for a test that reveals this bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.