3 ms·
But it's not really literate programming as Knuth envisioned it. A very important point was that you could write things in any order, and then use tangle to pro
by currymj 8y ago
But it's not really literate programming as Knuth envisioned it. A very important point was that you could write things in any order, and then use tangle to produce source code in the correct order for execution. Jupyter notebooks don't enable this, and in practice evaluating cells in the wrong order is a common mistake if you aren't careful (I've often just given up and restarted the kernel).
Imagine if they did, though. You could do something like put all your imports and preprocessing in an appendix. Or even more complicated: something like writing the inner loop of a function first, discussing it, and only afterwards writing the rest of the function and all the scaffolding.
This would be great, but I've yet to see a true literate programming tool that would actually be usable for my day to day tasks.