On 10 Feb., 18:57, Dox <[email protected]> wrote:
> Thank you guys, the unicode works in isympy! But now, Is there a way
> of load the .py file
>
> I tried in the terminal
> $ isympy Relativity.py > Retativity.txt
>
> and didn't work.

isympy just sets sys.displayhook. I'm not sure what you want to do,
but this works:


>>> from sympy import *
>>> import sys
>>> nu = Symbol('nu')
>>> nu
nu
>>> pretty(nu)
u'\u03bd'
>>> print _
ν
>>> def mydisplay(o):
...   print pretty(o)
...
>>> sys.displayhook = mydisplay
>>> nu
ν


Please note that this minimal displayhook "mydisplay" does not
implement the _ variable.


Vinzent

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