I want to remove the Jupyter "Run Cell|Run All Cells" buttons that appear if the syntax #%%
is present in Visual Studio Code.
Is there a setting that controls that?
Using Jupyter notebook you can click on a cell, press esc and then r .
To stop running a program before it's complete, use the red square stop button on the debug toolbar (Shift+F5), or use the Run > Stop debugging menu command. For full details, see Debugging configurations, which includes notes on how to use a specific Python interpreter for debugging.
Try: Ctrl + Alt + M , that should do it.
Start by setting any breakpoints you need by clicking in the left margin of a notebook cell. Then select the Debug Cell button in the menu next to the Run button. This will run the cell in a debug session, and will pause on your breakpoints in any code that runs, even if it is in a different cell or a .py file.
You can toggle off Python>Data Science: Enable Cell Code Lens
settings.
Update for others coming to this question:
With recent update you can choose what's displayed Run cell
|...".
If you're looking to remove clutter delete everything and save like below:
I would recommend leaving at least python.datascience.runcell
as it seems to disable shift+enter shortcut
If you turn off the data science features (the Python Interactive window) under Settings>Python>Data Science>Enabled then you won't see those code lenses any more. However that will also hide the rest of the data science features along with the lenses. Were you looking to turn off all data science features in the python extension or just the lenses?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With