https://github.com/donadigo/vscode-inlinepython
A VSCode extension that allows to execute Python code inline.
https://github.com/donadigo/vscode-inlinepython
Last synced: 10 months ago
JSON representation
A VSCode extension that allows to execute Python code inline.
- Host: GitHub
- URL: https://github.com/donadigo/vscode-inlinepython
- Owner: donadigo
- License: gpl-3.0
- Created: 2021-10-02T23:00:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T23:03:04.000Z (about 4 years ago)
- Last Synced: 2025-02-06T06:16:35.386Z (11 months ago)
- Language: TypeScript
- Size: 1.41 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

### Supports preloading a custom script with your defined Python 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