reveal.js is a framework for easily creating beautiful presentations using HTML.
This document can be compiled to HTML by
Running
stitch ex_revealjs.txt -o ex_revealjs.html -t html5 \
--template=revealjs.html --standalone \
--variable theme="beige" \
--no-hightlight --section-divs
Of course, you can use code
In [1]: def fib(n):
...: a, b = 0, 1
...: while a < n:
...: print(a, end=', ')
...: a, b = b, a+b
...:
...: fib(1000)
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987,