On Tue, Aug 16, 2016 at 12:52 PM, <
jmarcell...@ufpi.edu.br> wrote:
> hello Willian
>
> I type it in a terminal
> mkdir -p ~/bin; cd ~/bin; ln -s /usr/local/bin/sage-develop sage
>
> and restarted the project but still with the same result.
>
> sage_eval(('f (x) = (x ^ 2-1) / (x-1)', 'f (1.000000000000001)'))
>
> ('f (x) = (x ^ 2-1) / (x-1)', 'f (1.000000000000001)')
>
>
> version()
> 'SageMath version 7.4.beta0, Release Date: 2016-08-10'
You can revert that ~/bin/ change, i.e., remove the link if you want.
Instead, put this in your worksheet and try again:
def sage_eval(x, locals=None):
if isinstance(x, str):
x = str(x).strip()
if x.isspace():
return None
from sage.all import sage_eval
return sage_eval(x, locals=locals)
See
https://github.com/sagemathinc/smc/issues/825
>
https://groups.google.com/d/msgid/sage-cloud/47847e34-a241-4db7-9039-1c617d1d8ecb%40googlegroups.com.