Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyPI version

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 .colight files 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colight-2025.4.1.dev202506161911.tar.gz (639.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colight-2025.4.1.dev202506161911-py3-none-any.whl (191.7 kB view details)

Uploaded Python 3

File details

Details for the file colight-2025.4.1.dev202506161911.tar.gz.

File metadata

File hashes

Hashes for colight-2025.4.1.dev202506161911.tar.gz
Algorithm Hash digest
SHA256 b2c0b3386375de0036ffefe8faf71633d4a0df91edaf9e0f829f69c2c6c0e8bc
MD5 3a840530bb2766d5f20df2b19861e824
BLAKE2b-256 366601f1968ae7f3f58008ef14315a0253735c1ec61adc1eb56fd82ab25c339c

See more details on using hashes here.

File details

Details for the file colight-2025.4.1.dev202506161911-py3-none-any.whl.

File metadata

File hashes

Hashes for colight-2025.4.1.dev202506161911-py3-none-any.whl
Algorithm Hash digest
SHA256 c2dffccda5e3b8edb04076899c672af22dc89d8e83a7724dd8368981c47c85e5
MD5 3e8943f24b5aeb179b7822411324c445
BLAKE2b-256 502d4b9648982be80a029ed13501978533854b4518b9f392d054da0eb8072f3c

See more details on using hashes here.

Release history Release notifications | RSS feed

2025.7.8

2 files

2025.7.7

2 files

2025.7.6

2 files

2025.7.5

2 files

2025.7.4

2 files

2025.7.2

2 files

2025.4.1

2 files

This release

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page