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.6.dev202507271524
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.6.dev202507271524.tar.gz | 150.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colight_prose-2025.7.6.dev202507271524-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 218.6 kB
Release files / colight_prose-2025.7.6.dev202507271524.tar.gz
| Download URL | colight_prose-2025.7.6.dev202507271524.tar.gz |
|---|---|
| Size | 150.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ce350a168e0c355015fc4cd7f6fa71345324a628f1e82867da9c644c32e4e60
|
|
BLAKE2b-256 checksum How to use checksums |
47c33125fe1f71f127d173c6467c4a2fba352f5835e25577052b95e492f4e18f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / colight_prose-2025.7.6.dev202507271524-py3-none-any.whl
| Download URL | colight_prose-2025.7.6.dev202507271524-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d5029d84091231e86b40961632968b94ec9d1f64b8fb20dcd72eecf89b25820
|
|
BLAKE2b-256 checksum How to use checksums |
c5af8a5c0bbb0feb24337bd5fcd39f8de1537f1518ae9f8485465787954f48b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|