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
.colightfiles
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 blockshide-statements/show-statements- Hide or show Python statements (imports, assignments)hide-visuals/show-visuals- Hide or show results/visualshide-prose/show-prose- Hide or show markdown prose (comments)format-html- Output in HTML formatformat-markdown- Output in Markdown format
Pragma formats
# %% hide-code # Double percent format
# | show-visuals # Pipe format
#| colight: hide-prose # Legacy format (still supported)
Precedence
- Form-level pragmas (highest priority)
- CLI options
- File-level pragmas
- Defaults (lowest priority)
show-* pragmas always override corresponding hide-* pragmas.
Metadata
Release files for colight-prose 2025.7.3.dev202507251643
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_prose-2025.7.3.dev202507251643.tar.gz | 150.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colight_prose-2025.7.3.dev202507251643-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 218.6 kB
Release files / colight_prose-2025.7.3.dev202507251643.tar.gz
| Download URL | colight_prose-2025.7.3.dev202507251643.tar.gz |
|---|---|
| Size | 150.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f28e254eb58c6f31e1566ec88526355a87857b205d5887d4b1ebfa641f45ed77
|
|
BLAKE2b-256 checksum How to use checksums |
7b9ea9a0f747d6d242e4bf4fd689e5d43e2a90164ab0443bc2d68ba87dde5aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / colight_prose-2025.7.3.dev202507251643-py3-none-any.whl
| Download URL | colight_prose-2025.7.3.dev202507251643-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c78e03e144d25bd52b339a8fd7ad661c9cb5c1a16d35085b9bb287bff25ee38
|
|
BLAKE2b-256 checksum How to use checksums |
fb0898f3c68b1926f1748538743aa5188ae42a267a4e65e86460fa01de6e4b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|