Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
RossBencina
· 6y ago · 0 comments
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?
Comments
[–]
crashocaster
6y ago
This can be done by 'unparsing' the python AST. We do this in the DaCe project:
https://github.com/spcl/dace/blob/900cac070c4b083653c672e225...