Closed eric-wieser closed 4 years ago
To make CI pass on this, we need to manually register latex printers for Mv, Lt, and Dop (as IPython ignores _repr_latex_
if the base class is manually registered)
Edit: Or, I just edit sympy upstream to make this work (sympy/sympy#19944) ;)
This pull request introduces 1 alert when merging 463611f242063b453c376959c521ef069fd823ba into 45455195fea27d7697e8e0fda18208b51efff71d - view on LGTM.com
new alerts:
This pull request introduces 1 alert when merging e1360f5304055a51798460b8cf8d2a5cbaf797c7 into 45455195fea27d7697e8e0fda18208b51efff71d - view on LGTM.com
new alerts:
In sympy 1.7, we can use the new base class to inherit the printer. In earlier versions, we have to poke around in IPython internals to find the appropriate printer.
This means that
GaLatexPrinter
is no longer used by default, but that's ok because:Format
to enable it, or useinit_printing
GaLatexPrinter
no longer does anything essential like it used to - all galgebra objects print to latex without it, all it adds is subjective tweaks to: