Choice to not display the 'Run Cell | Run Above | Run Below' links
See original GitHub issueIssue Type: BUG
These get in my way and are way too easy to accidentally click on especially when the links are disappearing and reappearing multiple times after I deleted several #%%
.
Simply tying to put the cursor in the text results in inadvertently clicking on one of these links that ‘magically’ appears in the exact location I want to put the cursor at the exact moment I clicked to place the cursor in the text.
In fact, I always use shift
+enter
to run cells, and would also prefer to turn off the Run Cell
link as well.
This would prevent the code file from resizing and links appearing and disappearing.
Extension version: 2019.3.6352 VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z) OS version: Windows_NT x64 10.0.17134
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
So you really want a way to interrupt any cells that were started (interrupt kernel should probably do this) and you want to not have the codelens. I’ll log a separate issue to get interrupt to do that. (#5174)
There is a global codelens setting for VS code that turns off ALL codelens:
In our code, there’s a codelens provider. Have this return nothing: https://github.com/Microsoft/vscode-python/blob/e441ed614fe9ccda1818e19acbba5ab8d82d772c/src/client/datascience/editor-integration/codelensprovider.ts#L24
You can see in that code how it will return nothing if Data Science is disabled. However if you disable datascience, then the Python Interactive window won’t work either, so if you really want to change the code to not return any codelens, you can just return [] from that function.
@rchiodo
Thank you! The Workspace Setting was exactly what I was looking for.
If I need to re-enable it for some other extension or purpose, I will add the empty list to the code as you suggest.
Thank you