-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error attempting to locate Jupyter: Running cells with (...) requires jupyter package. #10856
Comments
A complete clean re-install of VS Code and miniconda (including all environments) seems to resolve the issue. |
Thanks for the bug. When you did step 2: Did you create a new conda environment, or did you create a venv? |
The same issue with jupyter package. In my case it is conda environment (macOS Monterey 12.4 arm64, VSCode 1.69.2 arm64), but trying to install pip package also fails. Catched exactly after VSCode update to the latest version. |
I used conda only, not venv or pyenv. |
Hmm, it sounds like we're trying to use pip when we should use conda? @avasyanin do you have the output logs? Can you tell if it's using pip to install? |
Ah @avasyanin your problem is different. Conda isn't setup to run. You need to run conda init bash first. Or install jupyter yourself. |
@rchiodo, for conda env it tries to use conda, see log file attached. |
@rchiodo, probably it's the same, it worked well, nothing changed with conda before VSCode update. This issue happened only with VSCode update. |
@avasyanin Your error is not the same as what @michaelweinold is seeing. Your system is failing to install because conda has not been initialized to support bash. If you create a conda terminal and then run |
@michaelweinold I'm not sure why yours was failing and since it's working now, I'm going to close this issue. From what I can tell running this:
Was failing even though the If it repros again, we'd need the output from running that exact command. We should probably log the stderr when it fails. This code here:
|
@rchiodo you are right. |
We cache the 'jupyter' environment we use. The cache may have been invalidated when updating VS code. So we no longer had the 'jupyter' environment to use and had to find/make a new one. This making of a new one seems to be where it was failing for you. |
I am getting the same error. Again after reinstalling VS code. I dont know why i get this error repeatedly |
Environment data
Expected behaviour
Jupyter installation in conda environment is recognized by vscode-jupyter.
Actual behaviour
VS Code does not recognize correctly installed Jupyter packages in conda environments. Jupyter Notebooks in the browser can be launched successfully from the activated environment. When attempting to run a notebook in VS Code, an error is thrown:
Any attempt to proceed by clicking "install" ends with:
Steps to reproduce:
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: