First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

See the built-in save and load which are made for this purpose. In one session with gdd defined you can do

sage: save(gdd, 'gdd')

and in another you can do

sage: gdd = load('gdd.sobj')
sage: gdd[0,0]
-eps
click to hide/show revision 2
No.2 Revision

See the built-in save and load which are made for this purpose. In one session with gdd defined you can do

sage: save(gdd, 'gdd')

and in another you can do

sage: gdd = load('gdd.sobj')
sage: gdd[0,0]
-eps

It uses pickling internally. If you want you can specify a directory as part of the filename.