Pylot - Python line runner
A VSCode extension that runs lines of Python code with visualized smart selection.
Features
- Execute Selected Python - Run selected code in a persistent Python REPL
- Visual Line Markers - See execution status with gutter icons:
- 🟠 Orange: Currently running
- 🟢 Green: Successfully executed
- 🔴 Red: Error occurred
- Clean Output Window - Output is displayed in a dedicated panel, without repeating the code lines.
- Persistent REPL - Maintains state between executions
- Restart REPL - Clear and restart the Python REPL session
- Clear Output - Clear the output channel
- Evaluate Expression - Quick evaluation of selected Python expressions
- Matplotlib Event Handler - Keeps Matplotlib plot windows open and allows multiple interactive figures to remain visible when plotting
Requirements
Usage
Execute Selected Code
- Select Python code in your editor
- Press
Shift+Enter to execute
- Results appear in the "pylot" output channel
Commands
| Command |
Action |
Default Shortcut |
| Execute Selected Python |
Run selected code |
Shift+Enter |
| Execute Selected Python (No Cursor Move) |
Run selected code without moving cursor |
Shift+Ctrl+Enter |
| Restart Python REPL |
Restart the REPL session |
- |
| Clear Python Output |
Clear the output channel |
Ctrl+Shift+C |
| Remove All Color Marks |
Remove all gutter markers |
- |
| Evaluate Python Expression |
Quick evaluate expression |
Ctrl+Alt+Space |
Keyboard Shortcuts
Shift+Enter - Execute selected Python code
Shift+Ctrl+Enter - Execute selected Python code without moving cursor
Ctrl+Shift+C - Clear output (when Python file is focused)
Ctrl+Alt+Space - Evaluate selected expression
Extension Settings
This extension has no configurable settings. It uses the Python interpreter selected in the Python extension.
Installation
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Pylot"
- Click Install
License
MIT
Author
bitagoras
| |