I want to edit a py file using a virtual environment in VS Code.
The ipynb file can now be edited by setting the virtual environment as shown in the attached image.
For py files, the same settings cannot be made and only the root environment can be used.

What I tried

■ For ipynb files

■ For py files