Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Inline PythonNew to Visual Studio Code? Get it now.
Inline Python

Inline Python

donadigo

|
4,313 installs
| (0) | Free
Execute & evaluate Python code directly in the text editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Inline Python

A little VSCode extension that allows to execute & evaluate Python code inline. Supports transforming multi-line selections and accessing functions defined in a preload script.

Usage

Select a snippet you want to transform with python code, press Ctrl+Shift+P, search "Insert Python Code" and press enter. Enter your Python code and press enter to submit. Any errors are also displayed inline.

Usage

Supports preloading a custom script with your defined Python functions:

Custom functions

Extension Settings

This extension contributes the following settings:

  • inlinepython.preloadScriptPath: Path to a Python script that will be loaded with the interpreter. (Requires restart)
  • inlinepython.execTimeout: The timeout in milliseconds before a query is stopped from executing
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft