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

Custom loop_factory for asyncio #1313

Open
NicolasT opened this issue Dec 20, 2024 · 0 comments
Open

Custom loop_factory for asyncio #1313

NicolasT opened this issue Dec 20, 2024 · 0 comments

Comments

@NicolasT
Copy link

Hello,

I have a use-case where we'd like to run the ipykernel main-loop using a specific asyncio.AbstractEventLoop implementation (not the stdlib's default one). Since in the main branch of ipykernel the code was migrated to use anyio, I believe this boils down to passing a suitable loop_factory value in the backend_options passed to anyio.run (unless Trio mode is enabled, of course).

Would there be any interest in a patch to allow this, essentially adding a --IPKernelApp.asyncio_loop_factory config option (a DottedObjectName)?

Thanks!

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