Ask Your Question
0

save_session runs forever

asked 11 years ago

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 ?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 11 years ago

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!)

Preview: (hide)
link

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: 11 years ago

Seen: 337 times

Last updated: Sep 28 '13