Pre-release
This release is a pre-release and may not be stable for production use.
Colight: declarative, reactive visuals in Python
colight.plot provides a composable way to create interactive plots using Observable Plot.
Key features:
- Functional, composable plot creation built on Observable Plot (with near 1:1 API correspondence between Python and JavaScript)
- Support for sliders & animations
- Works in Jupyter / Google Colab
- HTML mode which persists plots across kernel restart/shutdown, and a Widget mode which supports Python<>JavaScript interactivity
- Terse layout syntax for organizing plots into rows and columns
- Hiccup implementation for interspersing arbitrary HTML
- Export visualizations as HTML or as
.colightfiles for embedding in websites
For detailed usage instructions and examples, refer to the Colight User Guide.
## Development
Run `yarn watch` to compile the JavaScript bundle.
### CI Workflows
The project has several CI workflows:
- **Tests**: Runs JavaScript and Python unit tests
- **WebGPU Screenshots**: Tests 3D WebGPU rendering capabilities by capturing screenshots in headless Chrome
- **Docs**: Builds and deploys documentation
- **Pyright**: Runs type checking for Python code
- **Ruff**: Runs code formatting and linting
## Credits
- [AnyWidget](https://github.com/manzt/anywidget) provides a nice Python<>JavaScript widget API
- [pyobsplot](https://github.com/juba/pyobsplot) was the inspiration for our Python->JavaScript approach
Metadata
Release files for colight 2025.4.1.dev202506161911
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colight-2025.4.1.dev202506161911.tar.gz | 639.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colight-2025.4.1.dev202506161911-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 831.0 kB
Release files / colight-2025.4.1.dev202506161911.tar.gz
| Download URL | colight-2025.4.1.dev202506161911.tar.gz |
|---|---|
| Size | 639.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2c0b3386375de0036ffefe8faf71633d4a0df91edaf9e0f829f69c2c6c0e8bc
|
|
BLAKE2b-256 checksum How to use checksums |
366601f1968ae7f3f58008ef14315a0253735c1ec61adc1eb56fd82ab25c339c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / colight-2025.4.1.dev202506161911-py3-none-any.whl
| Download URL | colight-2025.4.1.dev202506161911-py3-none-any.whl |
|---|---|
| Size | 191.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2dffccda5e3b8edb04076899c672af22dc89d8e83a7724dd8368981c47c85e5
|
|
BLAKE2b-256 checksum How to use checksums |
502d4b9648982be80a029ed13501978533854b4518b9f392d054da0eb8072f3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|