News for hackers. Stuff that matters.
Re:Handcalcs: Automatically render Latex equations from Pyth... by mcqueenjordan on Tuesday September 01, 2020 @06:03PM (#24347661)
This is very useful. My use case is that I often write python simulations of designs and/or as cost analysis simulations, but I also often want to put these conclusions into white papers. This is an excellent way to de-duplicate the work of getting the python simulation code and the latex code both correct, and as a bonus, they can share a single place to change.

I'd love to be able to inline this code into my org documents, and have it display the latex output, but that might be asking for too much magic. (As in, not sure if the magic is worth the incantation.)

Re:Handcalcs: Automatically render Latex equations from Pyth... by Terr_ on Tuesday September 01, 2020 @08:16PM (#24348656)
> share a single place

I particularly like the idea of feeling reassured that whatever I publish for humans also passed a test-suite.

Re:Handcalcs: Automatically render Latex equations from Pyth... by narwally on Wednesday September 02, 2020 @01:35AM (#24350284)
There's already an emacs-jupyter package that provides an emacs api for interacting with the jupyter kernel through either a repl or org-mode source blocks. It provides output from the jupyter kernel in latex, svg, and png among others. What your asking probably wouldn't be to difficult and will probably find its way into one of the ipython notebook specific packages if it isn't already in one of them already.