Client library for Sidekick Visual Coding Buddy
Project description
Sidekick Python Library (sidekick-py)
This library provides the Python interface for interacting with the Sidekick Visual Coding Buddy frontend UI, typically running within VS Code. It allows your Python scripts to easily create, update, and interact with visual modules like grids (Grid), consoles (Console), variable visualizers (Viz), drawing canvases (Canvas), and UI controls (Control).
Quick Start
-
Install the Python Library:
pip install sidekick-py
-
Install the VS Code Extension:
Get "Sidekick - Your Visual Coding Buddy" from the VS Code Marketplace
-
Open Sidekick Panel:
Use the command palette (
Ctrl+Shift+P) and runSidekick: Show Panel. -
Run the sample code:
import sidekick import random # Create a 5x5 Grid grid = sidekick.Grid(5, 5) # Define what happens on click def handle_click(x, y): colors = ["khaki", "lavender", "peachpuff", "pink", "plum", "powderblue"] random_color = random.choice(colors) grid.set_color(x, y, random_color) # Register the click handler grid.on_click(handle_click) # Keep your script running to listen for clicks! sidekick.run_forever()
Run your script using
python your_file.pyin the terminal, or click theRunbutton in VS Code. -
Interact:
Click cells in the Sidekick panel to see colors change (press
Ctrl+Cto stop)
Learn More
- Sidekick GitHub Repository
- Explore the Examples Directory.
- Read the Python API Reference.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sidekick_py-0.0.6.tar.gz.
File metadata
- Download URL: sidekick_py-0.0.6.tar.gz
- Upload date:
- Size: 85.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff7bd0de0f8ae031036315d8469aca7bbc4ed06c6561817857fc5a8959a1a3a0
|
|
| MD5 |
beb41d094483b18ad14af46454e116c3
|
|
| BLAKE2b-256 |
707ef796bbafd01db6689adda54615061600d3276b21f5ac5756ca432ca52409
|