Great idea! During my time as a researcher, I heavily used org-babel. I used it to put code for data wrangling, plots, and notes into a single document. The notes would often contain formulas to describe what was done. I would regularly export that to PDF using pdflatex to send it to collaborators. Maybe this is an avenue worth considering for Ledge.

Similar things in this area:

Marimo - recently had a lot of success with this: https://marimo.io/

RMarkdown: https://rmarkdown.rstudio.com/

Quarto: (this is more the editor really I guess) https://quarto.org/

Marimo is amazing and "just python", no tangle/detangle necessary.

Thanks! I'm looking for ways to extend Ledge further. Math / Science capabilities could be cool (although I'll probably need a contributor that knows those needs to help out)