Prose in programs
Comments, docstrings, narration, and annotation markers. Run a cell to see its output beside the expected one.
Comments are ignored by the compiler
Viv [1]
narrate reports progress
narrate prints a progress line while the program runs, kept separate from the data output.
Viv [2]
Annotation markers are comments
The compiler ignores them; viv doc extracts them for code browsers.
Viv [3]
The variable glossary marker
#: name description documents what a variable IS. Inside a def it belongs to that function. viv doc prints the glossary, and the code viewer shows the description when you hover over any use of the name.
Viv [4]
Narrating phases
In a long program, narrate the start of each phase so the output shows where the run is.
Viv [5]