The first thing to do is to use the
%default_mode magic to set the whole worksheet to Maxima mode.
(Note: it's important to put this magic in its own cell.)
We can now use Maxima syntax.
%at the start of a line
In IPython, in Jupyter and in CoCalc worksheets,
names that starts with
% at the start of a line
are interpreted as "magics", so Maxima names
% can't be used at the start of a line.
As a workaround, add a space in front of such names, e.g. a space
%e for the mathematical constants and .
Problem reported at
Error in lines 1-1 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1234, in execute flags=compile_flags), namespace, locals) File "", line 1, in <module> File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1318, in execute_with_code_decorators code, locals=self.namespace)) # removed , end=' ' File "/ext/sage/sage-8.3_1804/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1361, in eval raise TypeError('error evaluating "%s":\n%s'%(code,s)) TypeError: error evaluating "plot2d([discrete, loesung])": Error executing code in Maxima CODE: plot2d([discrete, loesung]); Maxima ERROR: Maxima encountered a Lisp error: Filesystem error with pathname "/home/user/.sage/temp/project-fc94de41-6af4-4ee1-a684-c33a9e56b2b0/279/ecl/maxout471.gnuplot_pipes". Either 1) the file does not exist, or 2) we are not allowed to access the file, or 3) the pathname points to a broken symbolic link. Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil.