Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Plot not working

I am new to SageMath and am following the examples from the basic tutorials. The following command does not work:

plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

The error message is

sh: -c: line 0: syntax error near unexpected token `(' 
sh: -c: line 0:`sage-open/Users/xxx/.sage/temp/MacBook-Pro-(6)/1333/tmp_smrlkile.html 2>/dev/null 1>/dev/null &'

Is this due to the presence of parentheses in the auto-generated temporary directory? If so, how can I changed it?

Plot not working

I am new to SageMath and am following the examples from the basic tutorials. The following command does not work:

plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

The error message is

sh: -c: line 0: syntax error near unexpected token `(' 
sh: -c: line 0:`sage-open/Users/xxx/.sage/temp/MacBook-Pro-(6)/1333/tmp_smrlkile.html 2>/dev/null 1>/dev/null &'

Browsing to the temp directory, I do find the .html file and can open it (it displays the right graph). It seems the viewer cannot open it from the terminal application of SageMath. Is this due to the presence of parentheses in the auto-generated temporary directory? If so, how can I changed it?