Checkout the IJulia Notebook for the Demo
A particularly cool use of this is with SymEngine.jl.
repr
ing a SymEngine expression, outputs basically julia code.
You can parse
this to get a julia expression,
and then you can use Expr2LaTeX to render
it.