On 06/05/2012 10:08 AM, Sergiu Ivanov wrote:
On Tue, Jun 5, 2012 at 4:37 PM, Alan Bromborsky<[email protected]>  wrote:
I find having the console is useful for debugging python scripts.  The
problem with using LaTeX in a script programming environment (not Ipython)
is in tracing errors.  With latex you need to post process with the LaTeX
compiler to see the output and sometimes the error is in you sympy code and
sometimes the LaTeX you generate gives an error and if you are trying to run
LaTeX transparently you don't know where the error is.  I usually get
something debugged using the console and then generate LaTeX output for
clarity.
Yes, can't but agree, but how essential are colours and boldface for
debugging purposes?  As far as my initial question was concerned,
Stefan's pointing out IPython Notebooks gave me a sufficient answer.
When the new IPython will have been released, it would be very easy to
have very fancy LaTeX printing, thus playing around with producing
boldface type in terminal doesn't seem worthwhile for *my* goals.
There may be a different, more important use case though.

In my rewrite of the GA code I have the console setup to print the
multivector bases in bold, function coefficients in red, and derivative
operators in green.
Wow, sounds great!  In case I eventually do get at implementing this
SymPy-wide, could you please tell me where I can find your rewrite?

Sergiu

The reason for the color printing of functions and derivative operators is that I modified the sympy printing of fuctions (arguments are surpressed) and derivatives so that when I print multivectors on the console the strings would not be too long. The colors make it obvious when the multivector coefficients are functions (not variables or constants) and when differential operators are being applied to the coefficients. Note that colors are only used for generic functions such as f(x,y,z).

--
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