Ask Your Question

Is it possible to send a saved list of data to the sagecell-server

asked 2018-03-09 09:50:57 -0500

Peter Heinig gravatar image

Is it possible to send a precomputed list L that one has computed and saved with


to the server at and then do a calculation with L on that server? If so, how?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2018-03-10 04:51:34 -0500

tmonteil gravatar image

updated 2018-03-10 04:53:22 -0500

You can not upload on the sagecell server, but you can ask the sagecell server to download your file on the fly. For this you have to let your filename.sobj file accessible somewhere on the web.

For example, i have put a file at this url: it is a pickle of the list [1,2,4].

Now, on the cell, i can do:

L = load('')

and the object L on the Sage instance run by the sagecell server is the list [1,2,4] as you can check on this live example

edit flag offensive delete link more

answered 2018-03-10 04:09:10 -0500

vdelecroix gravatar image

Short answer: it is not. The Sage cell server at the given url is intended to be used for a single block of computation. Though it might contain several lines. And you can either - compute your object L as the first commands in your cell and then add the commands treating it further - if the size of L is small you can also input it manually in the cell

It is possible to run several cells in order to reuse previous computations. Though you would have to dig into the sagecell manual at and do a bit of javascript.

If you want to run longer computation, I suggest that you install Sage on your computer.

edit flag offensive delete link more

answered 2018-03-11 03:07:50 -0500

Emmanuel Charpentier gravatar image

(Not so) quick and (extremely) dirty trick : If your list has a reasonably-sized character representation, you might also try to paste it in the cell server in a convenient assign statement...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-03-09 09:50:57 -0500

Seen: 37 times

Last updated: Mar 11