Jupyter failed to run websocket error

Juputer cannot connect

There is a problem with the websocket connection, the browser console reports an error, and the WS connection is abnormal

WebSocket connection to 'ws:// localhost:8888/api/kernels/f8809bf9-988f-4666-b183-e01bed63fa76/channels?session_ id=e49c21f065e64e7a89847a0859d689dd' failed: Error during WebSocket handshake: Unexpected response code: 200

Solution

Refer to https://github.com/jupyter/notebook/issues/4399

Uninstall tornado 6 and re install tornado 5.

pip uninstall tornado
pip install tornado==5.1.1

Read More: