News for hackers. Stuff that matters.
Re:Handcalcs: Automatically render Latex equations from Pyth... by RossBencina on Wednesday September 02, 2020 @06:43AM (#24351889)
The %%tex directive to convert Python to LaTex looks useful. Does anyone know whether there is a similar way to output the Python code in C++ syntax?
Re:Handcalcs: Automatically render Latex equations from Pyth... by crashocaster on Wednesday September 02, 2020 @07:13AM (#24352071)
This can be done by 'unparsing' the python AST. We do this in the DaCe project: https://github.com/spcl/dace/blob/900cac070c4b083653c672e225...