davidbrochart / akernel

Asynchronous Python Jupyter kernel
MIT License
72 stars 5 forks source link

Kernel does not give any output on Windows, asyncio NotImplementedError, Kernel died #22

Closed stefaneidelloth closed 3 years ago

stefaneidelloth commented 3 years ago

I tried to install akernel with JupyterLab 3.1.18 and Python 3.9.4 on Windows 10

pip install akernel[react]
akernel install react
jupyter lab build

Its possible to select akernel for a Notebook. However, the notebook does not produce any output for my cells:

image

image

davidbrochart commented 3 years ago

It looks like this happens when restarting the kernel?

stefaneidelloth commented 3 years ago

Already happens when opening the notebook. Might be a general issue with asyncio and Windows?

=>Does akernel support Windows at all?

davidbrochart commented 3 years ago

=>Does akernel support Windows at all?

It has never been tested, and I don't have a Windows machine.

stefaneidelloth commented 3 years ago

I tried to upgrade pyzmq to version 22.3.0 and the error message changes to a warning:

image

And there is still no cell output.

stefaneidelloth commented 3 years ago

It has never been tested, and I don't have a Windows machine.

Thank you for the clarification.

davidbrochart commented 3 years ago

I tested v0.1.15 on a Windows machine with Python 3.9 and didn't see any issue. Could you try with this version? Also, I can see you are using winpython, I used a conda environment, but I'm not sure it could be related.

stefaneidelloth commented 3 years ago

Thank you. I updated some libraries. Following config worked for me

after I put following code at top of the notebook:

import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

Or, as an alternative, uninstall the packages zmq and asyncio

davidbrochart commented 3 years ago

Great! BTW, what does asyncio 3.4.3 mean?