David Brochart

Results 1131 comments of David Brochart

FastAPI has [startup and shutdown events](https://fastapi.tiangolo.com/advanced/events), I don't know if it makes sense to have a similar API?

I just tried with Jupyter Lab, and `ctrl-c` works for me. Can you provide more information about your environment?

- OS - Jupyter Notebook / Lab ? - `pip freeze` or `mamba list`

Thanks, what's your Python version?

`faiss==0.1` doesn't seem to exist: https://pypi.org/project/faiss/#history

Does it happen when enabling collaborative mode? I can see a possibility for it to happen because of asyncio tasks not being cancelled on exit (in [jupyter-collaboration](https://github.com/jupyterlab/jupyter_collaboration) and [ypy-websocket](https://github.com/y-crdt/ypy-websocket)).

Thanks for the feedback @dlqqq. Probably `yarn` doesn't forward `SIGINT` to the spawned process.

A bit far-fetched, but what do you think of a free function `create_task()` that would use the current `EnhancedTaskGroup` if there is one, and errors out otherwise? On one hand...

From an API point of view, is it going to be used like so: ```py async with EnhancedTaskGroup() as tg: ... ``` Rather than with a function as it's currently...

I wouldn't label it as a bug but as a feature request. Would you like to open a PR?