This is great stuff. It's how all code and data research should be
presented, where the document is the program and you can reproduce it
as easily as you can read it. After years of using Pure Data (a visual
dataflow) whose unofficial motto was "The diagram is the program" I
got this philosophy stuck deep in my brain. Today I use Org-Mode (In
Emacs) for tangling (with something called Babel) that can run source
code from many languages as part of an active document.