(forgot to CC the original author)

Aaron Meurer

On Thu, Sep 1, 2011 at 7:31 PM, Aaron Meurer <[email protected]> wrote:
> Hi.
>
> I am forwarding this message, and all attachments, that was sent to me
> (with the author's permission).  I don't have time to look at this
> now, so if others could play around with it, that would be awesome.
> The goal is to get seamless nice LaTeX printing with SymPy in the
> IPython qtconsole.
>
> Aaron Meurer
>
>
>
> ---------- Forwarded message ----------
> From: Kurt Pagani <[email protected]>
> Date: Thu, Sep 1, 2011 at 6:52 PM
> Subject: ipytex cont.
> To: Aaron Meurer <[email protected]>
>
>
> Hi,
> let me come back to the simpy tex rendering in ipython. I couldn't leave
> it alone, so I tried out different things. My first idea was that the
> TeX object should be stored within the sympy object. Well, a bad idea,
> because the 'Basic' class has no init and is more or less read-only. Now
> I have found another solution using a cache dict and all works
> surprisingly simple. Meanwhile I was able to compile the
> ipython-qtconsole on Linux, so the code is tested on NT and SuSE Linux.
> There is some saved HTML output attached (Basics.html is from NT and
> Advanced.html from Linux), showing the features available in a
> self-explanatory way.
>
> To get it work (only if you like of course):
> 1) copy ipytex.py to sympy/printing
> 2) replace sympy/core/basic.py by the attached one.
> There is only one additional method inserted into the "Basic" class
> (after __repr__). The ipytex.py was rewritten and simplified (the mplib
> version is unusable with sympy - at least for the moment - so it's been
> abandoned).
>
> I've pasted a lot of sympy expressions into the qtconsole (from the
> intro and ODE) and all but the 'Matrix' rendered smoothly (see
> Basics.html near the end). Does Matrix not inherit from Basic?
>
> I'm quite happy with this hack for the moment. I think it shows more
> clearly the interrelations than the stuff I sent you earlier. BTW you
> can do with the code whatever you like.
>
> Regards
> Kurt Pagani
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to