question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove code lenses for "set as interpreter"

See original GitHub issue

https://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

screenshot_1_3_19__1_12_pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:21
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
brettcannoncommented, Jul 24, 2020

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).

5reactions
AlJohricommented, Apr 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found