Wrong Python executable used when running code using PythonExecutionFactory #17613
Labels
area-environments
Features relating to handling interpreter environments
bug
Issue identified by VS Code Team member as probable bug
regression
Bug didn't exist in a previous release
Environment data
python.languageServer
setting: N/A[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Use the python environment provided when creating a PythonExecutionFactory
Actual behaviour
Wrong Python environment is used when creating a PythonExecutionFactory
This should be pretty evident from the following code
If you look at the above code,
pythonPath
is always deafulting topythonPath
defined in settings.json even if a PythonPath has been provided inoptions
This causes issues in Jupyter extension as its not using the python path provided in options
@karthiknadig @karrtikr /cc
The text was updated successfully, but these errors were encountered: