ElConrado
ElConrado

Reputation: 1640

Visual Studio Code with Jupyter Notebook: Shortcut for “run all”?

I have python script with jupyter notebook mark #%% which describe that I can run this script in visual studio code python interactive.

Acccording to this:

Jupyter/IPython Notebooks: Shortcut for "run all"?

I have similar question because described solution does not work in my case. How to specify shortcut for jupyter notebook command 'run all' in visual studio code?

Upvotes: 12

Views: 14278

Answers (1)

Nick
Nick

Reputation: 3845

You can create your own keyboard shortcut by modifying the keybindings.json file by clicking on

File > preferences > keyboard shortcuts

Then clicking on the link - (bottom right of the image below) enter image description here

EDIT: Search for python.datascience.runallcells in the box above. OR

You can also install the code runner extension.

Code runner will add a play button on the top right of the vs code window, which you can click to run your code.

Upvotes: 8

Related Questions