Repository navigation
Installing Python and Jupyter on fresh macOS multiple prompts #20635
Description
Activity
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on Jan 27, 2023 Peng Lyu (@rebornix) please could you file issues related to python extension in their repo
Eg the walk through and interpreter picker is clearly on issue in python extensionNot sure who is initiating the Python environment access so let's start the investigation from here
please could you share the debug logs with the latest insider release and pre/release
- removedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on Jan 28, 2023 - addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Feb 2, 2023 If it's not recommended to use the default Python on macOS, I expect not to see any prompt from system or Python extension.
This is a bug, can be fixed.
Prompt from macOS, it's probably triggered by the access of Python interpreter
It happens when extension attempts to check whether
usr/bin/pythonis a valid interpreter or not by running the file, so not sure what we can do there. Once Jupyter handles microsoft/vscode-jupyter#12719 which ensures discovery no longer happens at startup, the prompt should start appearing.Picking the option opens the walkthrough, which suggests to brew install, and it fails as I don't have brew yet.
We can recommend
python.orgin the text stating to use that if brew is not installed.- addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsneeds PRReady to be worked onReady to be worked onfeature-requestRequest for new features or functionalityRequest for new features or functionalityand removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 2, 2023 - addeddebtCode quality issuesCode quality issuesand removedfeature-requestRequest for new features or functionalityRequest for new features or functionality
on Mar 2, 2023 - added a commit that references this issue
on Mar 2, 2023 Verification steps:
- Use a fresh macOS
- Make sure Jupyter extension is not installed
- Open Python file to activate Python extension, and ensure the prompts mentioned don't show up
- If brew is not installed, that is logged in the terminal with a link to
python.org: Installing Python and Jupyter on fresh macOS multiple prompts #20635 (comment).
- locked as resolved and limited conversation to collaborators
on Apr 20, 2023


On a freshly installed macOS, the very moment we install Python and Jupyter extension per kernel source suggestion (Select Kernel -> Install Recommended Extensions), I got a prompt from the system and an error notification from Jupyter
Not sure who is initiating the Python environment access so let's start the investigation from here. If it's not recommended to use the default Python on macOS, I expect not to see any prompt from system or Python extension.