-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find and utilise WSL Python Environments #67
Comments
From @rogersachan on November 21, 2016 2:9 I'll close #195 since this is better worded |
From @shanalikhan on December 14, 2016 10:59 +1 , i am using python extension in code inside ubuntu and inside virtual box :) |
From @M-Adoo on December 18, 2016 7:27 +1 That be nice, if i can use wsl python enviroment across some config. like this ? {
"python.linting.pylintPath": "C:\\Windows\\sysnative\\bash.exe",
"python.linting.pylintArgs": ["-c", "pylint"]
} |
From @csholmq on January 9, 2017 15:10 Using @M-Adoo's approach, but with
to try and launch visualstudio_py_launcher.py. The problem is that on WSL, the Any way to change this? @DonJayamanne Perhaps with a setting |
From @tmcdonnell87 on January 25, 2017 5:12 +1 |
From @dalyIsaac on February 9, 2017 2:32 +1 |
From @rogersachan on February 9, 2017 2:44 Please see microsoft/vscode-cpptools#85 (comment) It appears a API will be made available for WSL/Bash for Windows. |
From @joel-wright on April 18, 2017 18:24 Is there any update on this or the other Bash on Windows 10 issues? |
Unfortunately nothing yet. |
From @overshard on May 17, 2017 23:4 I'm still looking for this too, it appears to be a matter pythonVSCode can't be told if it's executing stuff on windows or on WSL. We just need a way to have it use WSL pathing |
From @postgrep on May 25, 2017 21:19 I think an option to choose to either use the Windows environment or the WSL environment should be provided direcly by the editor, not by each plugin. Other language plugins for VScode for Windows have this issue too. I think the following issue in VScode itself relates to this one. I would prefer a global option in the editor itself. |
From @rjgonza on June 23, 2017 16:9 +1 |
From @hacdias on October 28, 2017 19:23 +1 |
From @trungtrinh44 on October 29, 2017 15:47 +1 |
From @brettcannon on October 30, 2017 21:46 FYI, the best way to vote for a feature is to simply use the 👍 reaction on the top message in the feature request as that helps provide a concrete number of how many people want this. +1s get lost in the noise of the feature request and end up generating email for everyone following this issue. |
@DonJayamanne In microsoft/vscode#39144 the direction seemed to be "let's learn what we can by supporting Win/WSL switching for NodeJS. as a one-off." I'd contend that doing that for another accessible language e.g. Python might also be helpful. I fully agree that your desire for a global solution is preferable to every plugin writing its own switch logic, but Python might shake out even more insight than Node does. Regardless, it seems like support for Code + WSL + Python is going to be stalled until the Real Deal Global solution is identified, correct? |
You're right @DonJayamanne, I mis-attributed your citation of @postgrep 's
comment. I stand corrected.
…On Mon, Nov 27, 2017 at 10:44 PM, Don Jayamanne ***@***.***> wrote:
your desire for a global solution is preferable to every plugin writing
its own switch logic
@sgharms <https://github.com/sgharms> , not sure why you're under the
impression that I'm after a global solution. I have said no such thing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADDYxyJRFpcSalpx5PR6OdeZb6gzWTkks5s64GogaJpZM4QcdzU>
.
--
Steven G. Harms
PGP: E6052DAF
<https://pgp.mit.edu/pks/lookup?op=get&search=0x337AF45BE6052DAF>
|
I figured. |
@garytyler Does that work for things like pylint? |
Can we currently configure vscode to use pylint from WSL in any way? Or is it completely broken for wsl envs? |
I just use that for activating virtual environments. I use pipenv and I tested that with using regular virtualenv or venv for Python 3. For linting, the way I've been setting it up is installing pylint on my Windows Python and setting the path with |
Please consider the existence of virtual environments of Anaconda as well. |
And possibly virtual environment in Cygwin |
Anyone knows what the timeline for this feature might be? Would be immensely important for my workflow. Thanks! |
@dkout we purposefully don't give out timelines, sorry. |
For me this is the only reason not to use Windows 10 for work instead of Ubuntu. |
You can use the new Plan9 server as a means of providing a path for the python environment. I would do it as a query since the path differs based on distro. Of course this also means a version check for a version of Windows that supports it (which the May release will be the first to support). |
Too hacky for me but might help someone following this thread. |
Follow on context |
Also while I'm here, there is |
Hi folks, we are closing this as support for WSL is enabled by the new Visual Studio Code Remote extensions we are unveiling today at PyCon! Learn more at... If you are at PyCon stop by our booth for a demo. |
did you launch code-insider from your WSL bash terminal? |
Yes. I did:
|
I had to run wsl.exe as administrator.. maybe that helps? But otherwise you might have to start an issue for that plugin.. |
Same result when running as administrator. I will open an issue on vscode. Thanks for the suggestion though :) |
I had the same issue because I was launching in my .bashrc file the fish shell instead of the default. I also have these settings pointing to the normal bash.exe. |
Been waiting long enough. I'll wait for the release in stable. Thank you @qubitron and your team!!! |
YES! It worked :D Thank you. I would not have guessed that in a million years. |
Now, there is no reason! |
From @kuza55 on November 18, 2016 14:58
Since windows processes can now call bash.exe to call processes in the WSL subsystem, it would be nice if VS code could:
a) Be configured to utilise a python interpreter inside WSL through bash.exe
b) Automatically find WSL virtualenvs in the current project and let the user use them easily
Making the Jupyter integration work in this scenario would also be very cool.
Copied from original issue: DonJayamanne/pythonVSCode#534
The text was updated successfully, but these errors were encountered: