whinarn / vscode-python-auto-venv Goto Github PK
View Code? Open in Web Editor NEWAutomatic selection of Python virtual environments in Visual Studio Code.
License: MIT License
Automatic selection of Python virtual environments in Visual Studio Code.
License: MIT License
sorry to ask here,but I dont get it,is this plugin used for init venv automatically,or just setup the enviroment(which already inited with some command like python -m venv bob)
for example,I started a new py project in vscode,I want it support venv
now I got a folder called exampleProject
,and a file main.py
in it,now I open main.py in vscode,will this plugin automatically init venv for me?Or when we in the main.py edit window I run ctrl+shift+p,input pythonautovenv.installVenv
,will it do something like python -m venv bob,and then detect the libary imported from main.py and auto pip install them?
I believe poetry is nowadays python dependency resolution practice.
It would be great to add poetry support.
Issue Type: Bug
I have a file called errors.py
in the same directory as my main.pyw
file, and main
imports error
. Visual Studio Code (and PyCharm) says unresolved import 'errors'
. Importing any file results in the same message.
Extension version: 1.1.1
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.19041
Problem
Right now, this extension relies on setting the path to the environments python executable by changing the settings.json file. As mentioned in microsoft/vscode-python#12313 this option will be removed.
Possible Solution
I think the intention is to expose similar functionality via an api, but I'm unsure if it will fit this extension.
Is your feature request related to a problem? Please describe.
When you are editing a file where its virtual environment is not installed, and it gets installed outside of vs code, the extension doesn't automatically detect this, and you have to switch to a python file in another directory to trigger a redetection.
Describe the solution you'd like
The virtual environment installation for your currently focused file should be detected automatically so that no further manual action is required by the user.
Describe alternatives you've considered
Alternatively or additionally there could be an action to ask the extension to redetect the virtual environment.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
python by default has its own virtual environment by command
python -m venv [projectname]
once created, it will created several folders inside [projectname] folder and create file pyvenv.cfg.
I believe this extension does not auto detect it.
Describe the solution you'd like
A clear and concise description of what you want to happen.
it is good if this extension able to auto detect it and have the terminal inside vscode auto start inside this virtual env.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.