Hi Ondrej,
Ondrej Certik wrote:
> Is there any documentation how to run it? I followed the docs/readme.txt:
>
> $ chmod +x bin/meditor
> $ bin/meditor docs/examples/sympy/example.py
>
> The editor starts up, I clicked Evaluate and I got a message
> "java.lang.NullPointerException". Am I doing something wrong? I use
> openjdk-6 from Debian.
This had to happen :-)
There are two issues. First, to run the sympy example you have to use:
bin/meditor-sympy docs/examples/sympy/example.py
instead of just "meditor", otherwise the sympy engine won't be available.
Second, I should have given more details on the operation. meditor can
evaluate or execute a fragment, depending on how the latter is selected.
So indeed the exception is likely due to not having selected any code.
To evaluate a expression, select it without the ending newline
character. For instance:
1+1
select + evaluate
-> 2
To execute a code fragment, select it with the (last) newline character.
For instance:
from sympy.printing.mathml import mathml
x = Symbol("x")
select the two lines above including newlines + evaluate
-> now the context knows about "mathml" and "x"
"<math>"+mathml(x+sin(x))+"</math>"
select without the newline + evaluate
-> the expression is rendered as mathml
Raphael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---