pythoninstallationjupyter-notebookport

Unable to start Kernel ... due to a timeout waiting for the ports to get used


Today I was running my python script in my jupyter notebook in vscode. At some point the program crashed. Afterwards I was not able to run the notebook at all since I always get this error: Failed to start the Kernel. Unable to start Kernel ... due to a timeout waiting for the ports to get used.

I already reinstalled jupyter, notebook and vscode. But I have no idea what I can do now.


Solution

  • Restart Everything

    2. Reset Jupyter Configuration

    3. Change Default Port

    4. Reinstall Dependencies

    5. Check System Permissions

    Prevention Tip:

    Always properly shutdown kernels using the VS Code interface before closing notebooks.

    If still not working: