Examples Overview¶
Pyplet does not bundle the official examples by default. To run the reference micro-apps locally, first fetch the examples repository and install the optional dependencies.
Fetch and install¶
# Clone the examples into your local checkout
git clone https://github.com/cetic/pyplet_examples apps/pyplet_examples
# Install dependencies used by the examples
uv sync --group examples
# Launch the server and browse the examples
pyplet start
Then open http://127.0.0.1:8080 to see the examples under Apps.
Updating an existing checkout
If you already have the repository, pull latest changes with git -C apps/pyplet_examples pull. If your project tracks the examples as a submodule, run git submodule update --init --recursive instead of cloning.
Available examples¶
- Chat: multi-user WebSocket chat with no JavaScript
- Dashboard: server-side plotting and layout composition
- Desktop: desktop-like window management in the browser
- Frontend Only: browser-only app running entirely in Pyodide
- Gradient Descent Playground: interactive parameter tuning for optimization
- NumPy Stream: streaming NumPy arrays to update plots in real time
- Sync NumPy: synchronized array updates between client and server
- Sync Slider: shared state between UIs connected via WebSocket