Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is a better option. If you are using sagenb, which appears to be the case, then note that "Upload" supports the following:

Supported file formats: ... .html or .txt - a worksheet text file with html code and cells surrounded by {{{ and }}} that defines a worksheet

So if you put {{{ and }}} around some stuff in this fashion

{{{
command
///
}}}

you should get a proper (more or less) worksheet, which you can evaluate.

There is a better option. If you are using sagenb, which appears to be the case, then note that "Upload" supports the following:

Supported file formats: ... .html or .txt - a worksheet text file with html code and cells surrounded by {{{ and }}} that defines a worksheet

So if you put {{{ and }}} around some stuff in this fashion

{{{
command
a=[1,2,3]
///
}}}

you should get a proper (more or less) worksheet, which you can evaluate.evaluate and then continue using a.