Avoid restarting Jupyter kernel after "ReactorNotRestartable"

anandmuralidhar
Hello,

I'm testing some strategies using the websocket API and am unable to stop and restart the connection. I get "ReactorNotRestartable" error and many threads on this problem suggest that we should restart the kernel. This fixes the error but leads to delay in code development in initial stages of testing a new strategy.
Is there a way to close the connection and restart it again without requiring a kernel restart. I tried kws.close() but restarting after that also leads to same error.

best,
Anand
Sign In or Register to comment.