-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Applies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
- On macOS 14.3.1, install Conda with
brew install miniconda - Open VS Code and open any
ipynbfile. - Press Shift-Cmd-P and click on "Notebook: Select Notebook Kernel"
- Click "Select Another Kernel..."
- Click "Python Environments..."
- Click "+ Create Python Environment"
- Click "Conda"
Expected result: A menu with a choice of the version of Python to install in the environment.
Actual result: An error box in the bottom right corner, saying Install `conda` to create conda environments.
Probable root cause: the hardcoded glob patterns for searching Conda in src/test/interpreters/condaService.node.ts, which don't match /opt/homebrew/bin/conda.
Quick workaround: cd /opt && sudo ln -s homebrew conda (since /opt/conda/bin/conda is matched by the patterns).
A quick solution would be to add a pattern for Homebrew, and a better one would be to look for Conda in a way that is independent of the way it is installed.
VS Code Version
Version: 1.87.2 Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:20:57.520Z (3 wks ago) Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.3.0
Jupyter Extension Version
v2024.2.0
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local