On Thu, Apr 24, 2008 at 6:51 AM, pong <[EMAIL PROTECTED]> wrote:
>
>  I have a basic question about loading object in the notebook
>  environment. Currently, I have to typed the whole path in order to
>  load a saved object.
>
>  For example, I saved the matrix A as C by save(A,'C')
>
>  But, say, I want to load it as B, I have to type
>
>  B = load('/home/sage/try/worksheets/admin/0/cells/5/C')
>
>  (I started the notebook in the directory which I call "try")
>
>  Is there a way to do it without specifying the whole path??

Do this:

sage: a = matrix(QQ,3,range(9))
sage: a.save(DATA + 'a')
sage: load(DATA + 'a')
[0 1 2]
[3 4 5]
[6 7 8]

The DATA variables is predefined in any notebook session for
this purpose.

William

--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to