| 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.
| 2 | No.2 Revision |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.