Ask Your Question
1

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

asked 2018-03-09 16:50:57 +0100

Peter Heinig gravatar image

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

save(L,'filename')

to the server at https://sagecell.sagemath.org/ 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
3

answered 2018-03-10 11:51:34 +0100

tmonteil gravatar image

updated 2018-03-10 11:53:22 +0100

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: https://sagedebianlive.metelu.net/tmp... it is a pickle of the list [1,2,4].

Now, on the cell, i can do:

L = load('https://sagedebianlive.metelu.net/tmp/filename.sobj')

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
2

answered 2018-03-10 11:09:10 +0100

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 https://github.com/sagemath/sagecell/... 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
0

answered 2018-03-11 09:07:50 +0100

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

Stats

Asked: 2018-03-09 16:50:57 +0100

Seen: 445 times

Last updated: Mar 11 '18