skip to Main Content

I tried to install the Jupyter Notebook Kernel on VSCode, and it cant seem to connect, it shows this text in the VSCode:

Failed to start the Kernel. 
C:UsersTheodoreAppDataRoamingPythonPython310site-packagestraitletstraitlets.py:2412: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(
C:UsersTheodoreAppDataRoamingPythonPython310site-packagestraitletstraitlets.py:2366: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '7d0f2f44-841e-4868-9c82-374720d9f73e' instead of 'b"7d0f2f44-841e-4868-9c82-374720d9f73e"'.
  warn(
Bad address (C:projectslibzmqsrcepoll.cpp:100). 
View Jupyter log for further details.

Python version : 3.10.4
Jupyter Notebook Version: 6.4.12

I tried switching to the kernel from Anaconda, but it also doesn’t seem to work. Sometimes it just asks me to reinstall the ipykernel again. Thanks for your help.

2

Answers


  1. Chosen as BEST ANSWER

    Turns out I have a VPN, and it made it crash, i used this in the CMD:

    netsh winsock reset
    

    and it worked. Thanks for your help


  2. Use command pip install ipykernel in the cmd.

    Alternative method:

    Use following command in the terminal to reinstall pyzmq package.

    pip uninstall pyzmq
    pip install pyzmq
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search