3 ms·
I believe he was thinking far more of something like Jupyter Notebook. I’m waiting for VSCode to implement a bit of API that would allow me to start on an exte
by IfOnlyYouKnew 8y ago
I believe he was thinking far more of something like Jupyter Notebook.
I’m waiting for VSCode to implement a bit of API that would allow me to start on an extension turning comments into first-class citizen, with, for example, diagrams, links, or images.
- currymj 8y agoBut 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.
- zaarn 8y agoTempleOS has this, sort of. The normal fileformat for code on TempleOS allows embedding images into the code and directly referencing it. The documentation also automatically generates links to the correct functions and you can generally find all relevant code bits to some piece of documentation. The terminal in TOS also natively supports images.