13

Is there a way to run all cells above a given cell in VS Code's python notebook working environment?

exan
  • 3,236
  • 5
  • 24
  • 38

1 Answers1

15

In the command pallet run the command: Notebook: Execute Above Cells. Create a keyboard shortcut (e.g., alt+A). Then you are done.

Jae
  • 166
  • 1
  • 4
  • 5
    cmd+shift+p to access the command pallet on windows. Then ensure that you're in code cell so you can see the command. Thanks Jae – olawalejuwonm Jan 08 '23 at 11:59