Jupyter notebook: No connection to server because websocket connection fails

前端 未结 6 766
我在风中等你
我在风中等你 2020-12-08 18:26

I have just installed Jupyter over pip (Python version is 3.7.2) in Windows 10, started the jupyter server by calling jupyter notebook, created a new notebook w

相关标签:
6条回答
  • 2020-12-08 18:54

    Reset your jupyter notebook configuration file by use this below command to reset default config of jupyter_notebook_config.py

    jupyter notebook --generate-config
    
    0 讨论(0)
  • 2020-12-08 18:57

    The problem was that there was an incompatibility between the packages tornado 6 and notebook 5.7.4. notebook was updated on March 6th 2019 in order to solve this issue. Right now, the best way to solve it is the following:

    Using pip

    $ pip install -U jupyter
    

    Using pipenv

    $ pipenv update jupyter
    
    0 讨论(0)
  • 2020-12-08 18:57

    This problem occurs when you install TensorFlow.js.

    When you install TensorFlow.js, it also installs prompt-toolkit-1.0.14, which causes the problem.

    After installing TensorFlow.js, you just have to install prompt-toolkit-3.0.5 to solve this problem by running the following code in your command prompt:

    pip install prompt-toolkit==3.0.5
    
    0 讨论(0)
  • 2020-12-08 19:05

    Don't downgrade tornado. Instead, force-reinstall jupyter.

    pip3 install --force-reinstall upgrade jupyter
    

    Ref: https://github.com/jupyter/notebook/issues/4439

    0 讨论(0)
  • 2020-12-08 19:06

    The Jupyter Notebook 5.7.5 update should resolve issues with tornado 6. See the tweeted announcement and github release tag by the Jupyter team.

    As of 03-06-19, both the docs and conda distribution are pending changes. You may however update using pip.


    From the docs, upgrade with:

    > pip install notebook --upgrade
    

    Verify version:

    > pip --version
    
    0 讨论(0)
  • 2020-12-08 19:16

    I had the same problem, and following this vvk2001github https://github.com/jupyter/notebook/issues/4399 fixed it for me.

    Uninstall tornado 6 and reinstall tornado 5.

    sudo pip3 uninstall tornado
    sudo pip3 install tornado==5.1.1
    

    @kaleo gave this answer as well to similar question from @Jason Nichols

    0 讨论(0)
提交回复
热议问题