Skip to content

Jupyter won't select specified virtual environment on first start #7013

@darim1

Description

@darim1

I have a workspace containing several folders with projects. One contains a subfolder ".venv" with an environment for that specific project. I employ scripts, that I'd like to run interactively with that particular environment:

Folder structure:

/workspace
/workspace/project1/...
/workspace/project2/.venv/Scripts/python.exe
/workspace/project2/.vscode/settings.json
/workspace/project2/blabla/my_script.py

But whenever I open the interactive console, it will start with some system python. Then I have to manually select the proper environment. This is annoying!

This is the content of settings.json:

{
"python.pythonPath": ".venv\Scripts\python.exe"
}

In addition I observed, that the same setup has worked before my recent update to vscode v1.59.

Can someone please give me advice about how to setup my workspace properly or how to configure vscode?

Thanks,
Daniel

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from posterinteractive-windowImpacts interactive windowverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions