Skip to content

A VSCode extension enables the execution of selected code snippets or inferred code block from a Python file within a Jupyter environment.

License

Notifications You must be signed in to change notification settings

xororz/run-in-jupyter

Repository files navigation

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

Modify your keybings if you encounter problems.

  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.

About

A VSCode extension enables the execution of selected code snippets or inferred code block from a Python file within a Jupyter environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published