Hello Rishi,

You can use the 'save' command as illustrated below.

sage: a = matrix(2, [1,2,3,-5/2])
sage: save(a, '/home/mike/a.sobj')
sage: b = load('/home/mike/a.sobj')
sage: b         
[   1    2]
[   3 -5/2]

Note that the server need to have to have permission to write the file
to the location you specify.

--Mike

On 10/25/07, Rishikesh <[EMAIL PROTECTED]> wrote:
>
>
> I want to pickle an object in sage notebook. It took me several hours
> to create the object.
> When I run the python commands for pickling, it creates a file
> directory
> $SAGE_HOME/notebook/worksheet/1/cells/94
>
> Question: How can I use the python's pickling feature from the
> notebook?
>
>
>
> Rishi
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to