Ask Your Question

save_session runs forever

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

alessandro gravatar image


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

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.

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


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

Seen: 286 times

Last updated: Sep 28 '13