Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Run in JupyterNew to Visual Studio Code? Get it now.
Run in Jupyter

Run in Jupyter

xororz

|
1,746 installs
| (1) | Free
Execute selected code snippets or inferred code block from a Python file within a Jupyter environment.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

run-in-jupyter README

This VSCode extension enables the execution of selected code snippets or entire code blocks from a Python file within a Jupyter environment.

Requirements

This extension requires the Jupyter extension by Microsoft. It just sends the code to the Jupyter extension and runs it.

Usage

  1. Shift+Enter for Running the current block of code and make your cursor Move Down to the start of next block. So you can do this repeatedly.
  2. Alt+Q for Just Running the current block of code. This may be useful for testing some random-result code. You can customize the keybinding in VSCode.
  3. Select some code. Either 1 or 2 will run the selected code.

demo

Notes

  • It will be better to use a formatter like Black Formatter to format your code before running it.
  • Python Multi-Line String is not supported yet. You can select the code and run it.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft