SymPy doesn't directly support SVG output. Your best bet would be to
find some tool that supports converting LaTeX or MathML to SVG, as
SymPy can export to both of those, or something that converts PDF to
SVG (SymPy can generate a PDF with preview()).

This page suggests some options for converting LaTeX to SVG
https://askubuntu.com/questions/33196/how-to-convert-latex-equations-to-svg.

If one of these tools works well maybe we can add support for it to preview().

Aaron Meurer

On Thu, Nov 17, 2022 at 5:05 AM Anton Makarov <antonvmaka...@gmail.com> wrote:
>
> Hi, i am new to sympy. I need to convert the results of sympy calculations to 
> svg string.
> How can i do this?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/f87eed03-8444-48e5-aff1-effaaf28d432n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2Bzx-A-6ubxcYr2i7eLzzTrCVK-Ji7aUs1J7K5qNzsa4g%40mail.gmail.com.

Reply via email to