#🔒 Jupyter Failed to start the Kernel even after their fix.

12 messages · Page 1 of 1 (latest)

frozen path
#

Every time I create a new venv on python and attach it as a kernel on a notebook, it just stays connecting forever. After following their "fix" (https://github.com/microsoft/vscode-jupyter/issues/17035) I create a new venv but when I try to import os to install packages it gives me this error attached as screenshot.

The log says:

17:48:01.317 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.320 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.367 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: Jupyter cannot be started. Error attempting to locate Jupyter: Running cells with '.env (Python 3.12.7)' requires the notebook and jupyter package.
> at Ty.startServerImpl (~\.vscode\extensions\ms-toolsai.jupyter-2025.8.2025082701\dist\extension.node.js:278:10478)
17:48:01.367 [warn] Kernel Error, context = start Error: Jupyter cannot be started. Error attempting to locate Jupyter: Running cells with '.env (Python 3.12.7)' requires the notebook and jupyter package.
> at Ty.startServerImpl (~\.vscode\extensions\ms-toolsai.jupyter-2025.8.2025082701\dist\extension.node.js:278:10478)
17:48:01.375 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.379 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.382 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:02.264 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -m pip list
17:48:02.265 [error] Failed to parse env file ~\Desktop\PythonNotebooks\.env [Error: EISDIR: illegal operation on a directory, read] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'read'
}
17:48:02.268 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:02.328 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -m pip install -U jupyter jupyter-client<8 pyzmq<25
17:48:10.772 [error] Error in notebook cell execution 
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

17:48:10.772 [error] Error in execution (get message for cell) 
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.```
GitHub

Version 2023.8 (2 yr old version) of the Jupyter extension is getting installed Solution Manually install latest 2025.8.* version (see below screenshots for approach) Or please install VS Code Stab...

peak starBOT
#

@frozen path

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

frozen path
#

For reference, this is what prompts me to run

naive mango
#

Do you have the jupyter-related packages installed into the venv? If you do pip list | grep -P "jupyt|notebook|ipy" in the venv, what do you get?

#

(I suspect you need to manually pip install the notebook package. Not sure why vscode can't do it)

#

That error is weird... did you maybe call a directory .env? It seems it confuses some library that expects .env to always be a name of a dotenv file.

frozen path
#

Okay I understand now. Thank you for helping me. I've come across every error on earth when it comes to python and this PC. I did python -m pip install jupyter notebook -U inside of the .env directory. Before I would do that same command OUTSIDE of the .env and it wouldn't work. That was the trick. Thanks!

#

Everything outputs perfectly fine now

#

Goat

#

!close

peak starBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.