Sounds like literate programming.
I've used it once or twice for training material and as "fancy" slides at an internal presentation.
Worked quite well as one-offs but I'm not sure that scales wrt its usability and maintenance.
Worked quite well as one-offs but I'm not sure that scales wrt its usability and maintenance.
Things like jupyter notebooks and observablehq.com seem to be bringing in a breath of fresh air to literate programming.