Support ms-python.vscode-python-envs for Python environment discovery#39
Open
dv-ar wants to merge 1 commit intocaenrigen:mainfrom
Open
Support ms-python.vscode-python-envs for Python environment discovery#39dv-ar wants to merge 1 commit intocaenrigen:mainfrom
dv-ar wants to merge 1 commit intocaenrigen:mainfrom
Conversation
Adds support for the Python Environments extension (ms-python.vscode-python-envs) as a Python discovery source, tried before ms-python.python. Prefers the active workspace environment, falls back to global active environment, then all other discovered environments. Broken environments are skipped. Subscribes to environment change events with a 500ms debounce to re-validate Jupytext automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
Please elaborate first on the problem(s) this PR is intended to solve. I am currently using Jupytext from a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ms-python.vscode-python-envs) as a Python discovery source, tried beforems-python.pythonerrorfield) before spawning subprocessesonDidChangeEnvironmentandonDidChangeEnvironmentswith a shared 500 ms debounce to re-validate Jupytext when the active environment changespythonExecutablesetting description to document all three discovery sources in priority orderTest plan
ms-python.vscode-python-envsinstalled: Output → Jupytext Sync showsms-python.vscode-python-envs: resolved N candidate path(s): ...ms-python.pythoninstalled: fallback works as beforepython/python3PATH fallback workserrorfield) are skipped and not probed🤖 Generated with Claude Code