Skip to content
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

[Feature request] Enhance handling of multiple Python environments. #986

Closed
LexiconCode opened this issue Oct 20, 2022 · 0 comments
Closed

Comments

@LexiconCode
Copy link

LexiconCode commented Oct 20, 2022

Is your feature request related to a problem? Please describe.
It's frustrating working with multiple Python environments. In order to handle these cases one has to alter executor map and other settings to handle the different python environments.

You can get partway there with workspace variables. This assumes the paths are the same per virtual environment and project and does not handle multiple non-virtualized interpreters.

Describe the solution you'd like

There's a few ways this problem could be approached.

  • Extensions such as Python by Microsoft support selecting a interpreter. Code runner detect which python interpreter is an selected this would work for both virtualized and non-virtualized environments and fall back the default Python interpreter the Microsoft extension is not detected.

  • Code runner could detect the Python environments (on and off sys path) or virtual environments within the workspace. The interpreter could be selectable in the settings or bottom toolbar of VS code

The following PR #915 may partially resolve this issue using the first approach.

@LexiconCode LexiconCode closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant