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
Not using Proactor event loop by default on Windows with Python 3.10 #12545
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I'm running into this issue even with IPython on the terminal, so I'd love to know how you made that work. |
@tonnydourado @dan-blanchard I think that your issue is with ipykernel, rather than with JupyterLab. ipykernel 6.28.0 released 3 weeks ago includes ipython/ipykernel#1184 which enabled |
Closing this because it seems to be an ipykernel issue that was recently resolved. |
Description
Jupyter does not use asyncio's default Proactor event loop, and setting it with
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
orasyncio.set_event_loop(asyncio.ProactorEventLoop())
has no effect. Everything works as expected on IPython on the terminal, howeverReproduce
asyncio.run(get_date())
toawait get_date()
NotImplementedError
is raised, because the event loop being used,WindowsSelectorEventLoop
, does not support subprocessesExpected behavior
get_date()
result should show up, not an unimplemented errorContext
Troubleshoot Output
Command Line Output
The text was updated successfully, but these errors were encountered: