Skip to main content

No project description provided

Project description

PyPI version

Colight: declarative, reactive visualizations 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

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 provides a nice Python<>JavaScript widget API
  • 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.dev202506112213.tar.gz (587.2 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.dev202506112213-py3-none-any.whl (609.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colight-2025.4.1.dev202506112213.tar.gz
  • Upload date:
  • Size: 587.2 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.dev202506112213.tar.gz
Algorithm Hash digest
SHA256 38430fd5056604ac8c254119fdb1aef114a4832d5fa22e7493c4b92bb753d693
MD5 0b44486e2ffc22a416b4c6f585550643
BLAKE2b-256 f6f128abd2518768469eb4c76efdaf7ea152b3c72da6a41362b9833aeda44330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colight-2025.4.1.dev202506112213-py3-none-any.whl
Algorithm Hash digest
SHA256 19021ccf1c2a35b472b0e4aea8e3fc2a7bd65ece2fab121f066032469af4de31
MD5 078abc9ea890fd494877181ac50de9d2
BLAKE2b-256 1eb5088b43594052bafa489aa497179d6806008ed6f9711fb529d5c0e3397c34

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