Custom jupyter kernel in a continuous restart loop

Hi,

I have a custom jupyter kernel written. The kernel as such seems to work OK because I can test it by starting it from the command line like so python3 -m kernelname and eventually execute commands. But the notebook just doesn’t connect. It appears to enter an infinite loop of connecting to the kernel due to websocket connection failure. Attached is the error on the console.

I have ensured tornado is downgraded to ver 5.1.1.

Could someone suggest how to fix this please?

Thank you!

Any idea how to fix it?

This was cross-posted here. Those stumbling upon this issue may want to check there as well.

1 Like

@fomightez Any recommendation on how to resolve this?