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.

Choice to not display the 'Run Cell | Run Above | Run Below' links

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Apr 9, 2019

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: image

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.

0reactions
claymscommented, Apr 9, 2019

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Choice to not display the 'Run Cell | Run Above - GitHub
This would prevent the code file from resizing and links appearing and disappearing. Extension version: 2019.3.6352. VS Code version: Code 1.32.
Read more >
VSCode: How to make Run Above run only the cell above and ...
Clicking Run Above does not trigger only the cell above, but rather all cells above. In the snippet below, option A will return...
Read more >
Working with Jupyter code cells in the Python Interactive window
Run Cell applies to only the one code cell. Run Below, which appears on the first cell, runs all the code in the...
Read more >
Run All Above/Below | Data Science and Machine Learning
A workaround would be manually selecting the cells you want to run. If the cells are consecutive, choose the first cell, press Shift,...
Read more >
PyCharm - Run and debug Jupyter notebook code cells
Ctrl+Enter : Runs the current cell. Shift+Enter : Runs the current cell and select the cell below it. When executing one cell at...
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