Remove code lenses for "set as interpreter"
See original GitHub issuehttps://github.com/Microsoft/vscode-python/issues/736
I don’t know if you have usage statistics on this but it seems more annoying than useful. I am almost always working within a virtualenv which I set by clicking on the bottom left and selecting my python interpreter.
The hashbang by design is super generic, like #!/usr/bin/env python3
. Clicking “set as interpreter” just changes it to system python which is almost always not useful, especially when you’re already in a virtualenv.
I recommend removing this suggestion all together or at the very least removing it when the python path is explicitly listed in settings.json
Issue Analytics
- State:
- Created 5 years ago
- Reactions:21
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Remove "Set as interpreter" label in Visual Studio Code
1 Answer 1 ... You should remove the first line, something like "#!/usr/bin/env python". Share.
Read more >Python in Visual Studio Code - October 2022 Release
Python in Visual Studio Code – October 2022 Release ... ChinazoOnwukaike: Remove code lenses for “set as interpreter” (vscode-python#19853) ...
Read more >If a contact lens is stuck and the patient is unable to remove it ...
If a contact lens is stuck and the patient is unable to remove it, can you charge a foreign body removal code?
Read more >Working with Jupyter code cells in the Python Interactive window
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P). Once the appropriate environment is activated, you ...
Read more >Interpreter in Apache Zeppelin
A Zeppelin interpreter is a plug-in which enables Zeppelin users to use a specific language/data-processing-backend. For example, to use Scala code in Zeppelin, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are going through old issues and we noticed that no one from the team had replied to this issue. I want to apologize for the oversight and to let you know that the issue was reviewed by the team and triaged (as shown by the labels applied to this issue).
I seem to use CodeLens quite a bit from your link.
I’d advocate for removing it once the python has been explicitly set by user action.