Skip to main content

No project description provided

Project description

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

Project details


Release history Release notifications | RSS feed

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.dev202506131321.tar.gz (170.6 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.dev202506131321-py3-none-any.whl (191.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colight-2025.4.1.dev202506131321.tar.gz
  • Upload date:
  • Size: 170.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.5 Linux/6.11.0-1015-azure

File hashes

Hashes for colight-2025.4.1.dev202506131321.tar.gz
Algorithm Hash digest
SHA256 46ccbaa1fd6937c751789e859465b3d18be68587aaf2202b267e604df6ea4b37
MD5 3f7e31e01b38cde2f5dbe46d6f62945e
BLAKE2b-256 2a6049ead72343c7a6e9247beca8c47f52888883d408bbcc038b35eac35373fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colight-2025.4.1.dev202506131321-py3-none-any.whl
Algorithm Hash digest
SHA256 5e85863ab39f9b078a5b440f44019a3e9eda72a032174703fb96910aa5da0560
MD5 2092a6d2d894369260c2c6af6d412433
BLAKE2b-256 d69dcec4948ddbf7ae12dcc0ef8383220c52169a0b0208961c3e7c1783430c6d

See more details on using hashes here.

Supported by

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