microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.28k stars 289 forks source link

Python: Select Interpreter and Notebook "Select a Python Environment" are inconsistent #15816

Closed david-waterworth closed 2 months ago

david-waterworth commented 3 months ago

"Python: Select Interpreter" shows a list of "discovered" python environments, plus there's an option "+ Enter interpreter path". But this option isn't present when choosing a python environment for notebooks (instead there's a list of "discovered" python environments, plus an option to "+ Create Python Environment".

I have one notebook that has requirements that conflict with the main project requirements, so I want to create a separate venv just for that notebook in my notebooks folder, i.e.

/
.venv/
notebooks/
    .venv/
    notebook.ipynb

It would be nice if the "change kernel" option accepted a venv path.

DonJayamanne commented 3 months ago

Thanks for this suggestion, you can instead use Python: Select Interpreter enter the path in there and then go into the kernel picker and then the new Python env should now show up. Please let me know if this doesn't work.

david-waterworth commented 3 months ago

Thanks @DonJayamanne - you're right, temporarily using Python: Select Interpreter works.

DonJayamanne commented 2 months ago

Duplicate of https://github.com/microsoft/vscode-jupyter/issues/15087