Jupyter Notebook - Cannot Connect to Kernel

后端 未结 10 1740
小蘑菇
小蘑菇 2021-02-20 02:21

I\'ve tried installing jupyter notebook using pip3 install jupyter. Every time i launch a new jupyter notebook, the notebook is unable to connect to the kernel. See screenshot b

相关标签:
10条回答
  • 2021-02-20 02:56

    Just update the notebook, should work

    0 讨论(0)
  • 2021-02-20 02:59

    If the above does not work for you then this is highly recommended.

    I had the same issue where the kernel would simply not connect. Tried every solution, still no connection.

    In the end I noticed some Value Error Exceptions being raised in the console where I started the notebook client. The source of these exceptions was another python script in the same folder as the notebook.

    delete all the python files in the same directory where notebook is installed or move them to some other folder. Fixed the notebook

    0 讨论(0)
  • 2021-02-20 03:01

    In my case, I just updated my jupyter and it worked.

    0 讨论(0)
  • 2021-02-20 03:02

    Create a conda environment using:

    conda create -n my_env python=3
    

    Activate the environment using:

    source activate my_env
    

    Install the ipykernel using:

    conda install ipykernel
    
    ipython kernel install --name my_env --user
    

    Now open the jupyter and select the "my_env" from Kernel option. ( path : jupyter -> kernel -> change kernel -> my_env )

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