Skip to main content
Pre-release

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

Colight Site

Static site generator for Colight visualizations.

Converts .py files into markdown/HTML documents where:

  • Comments become narrative markdown
  • Code blocks are executed to generate Colight visualizations
  • Output is embedded as interactive .colight files

Usage

# Build a single file
colight-prose build src/post.py --output build/post.md

# Watch for changes
colight-prose watch src/ --output build/

# Initialize new project
colight-prose init my-blog/

File Format

.py files mix comments (markdown) with executable Python code:

# My Data Visualization
# This creates an interactive plot...

import numpy as np
x = np.linspace(0, 10, 100)

# The sine wave
np.sin(x)  # This expression generates a colight visualization

Pragma Directives

Control the output format and visibility of content using pragma comments:

File-level pragmas

Begin with hide-all-, at the beginning of the file:

# | hide-all-code

# Your content here...

Form-level pragmas

Place directly before a code block:

# | show-code
x = np.array([1, 2, 3])

Available pragmas

  • hide-code / show-code - Hide or show code blocks
  • hide-statements / show-statements - Hide or show Python statements (imports, assignments)
  • hide-visuals / show-visuals - Hide or show results/visuals
  • hide-prose / show-prose - Hide or show markdown prose (comments)
  • format-html - Output in HTML format
  • format-markdown - Output in Markdown format

Pragma formats

# %% hide-code          # Double percent format
# | show-visuals        # Pipe format
#| colight: hide-prose  # Legacy format (still supported)

Precedence

  1. Form-level pragmas (highest priority)
  2. CLI options
  3. File-level pragmas
  4. Defaults (lowest priority)

show-* pragmas always override corresponding hide-* pragmas.

Metadata

Release files for colight-prose 2025.7.7.dev202601161520

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colight-prose 2025.7.7.dev202601161520
File Size Uploaded
colight_prose-2025.7.7.dev202601161520.tar.gz 150.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colight-prose 2025.7.7.dev202601161520
File Interpreter ABI Platform
colight_prose-2025.7.7.dev202601161520-py3-none-any.whl Python 3 none any Details

Total release size: 218.7 kB

Release files / colight_prose-2025.7.7.dev202601161520.tar.gz

Download URL colight_prose-2025.7.7.dev202601161520.tar.gz
Size 150.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a9989b6c1f893e299079b58519b9fa9e59c989d3021e0b30b33e3f7998a16383
BLAKE2b-256 checksum
How to use checksums
d35310f8c9930d23085610d6773d1aee8cb5b03a52fd8d514349120c8f135d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / colight_prose-2025.7.7.dev202601161520-py3-none-any.whl

Download URL colight_prose-2025.7.7.dev202601161520-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de3d74f945296bfa80be729dcfe9aaedf7daf3002bf32e65ffacf2c876004cae
BLAKE2b-256 checksum
How to use checksums
bc72ee73986a9e94a6019897b222d0cb15b12f871c1d716b24a8add82b2c549b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page