Ask Your Question
0

save_session runs forever

asked 2013-09-26 09:22:48 +0200

alessandro gravatar image

Hello,

when I try to save a session (save_session command) with some expressions that are very long (composed by sums with hundred of terms) then the save session command runs for hours without producing any result nor writing anything to the file that should be created for storing the session on disk.

What can I do ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-28 09:38:45 +0200

alessandro gravatar image

save or save_session seems not to work on very large expressions. But cPickle seems to work. http://docs.python.org/release/2.5/li... http://www.sagemath.org/doc/tutorial/...

I cite the second link: (In Python, saving and loading is accomplished using the cPickle module. In particular, a Sage object x can be saved via cPickle.dumps(x, 2). Note the 2!)

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

Stats

Asked: 2013-09-26 09:22:48 +0200

Seen: 268 times

Last updated: Sep 28 '13