Hi Mariah,

On Fri, Oct 9, 2009 at 6:53 AM, Mariah <[email protected]> wrote:

<SNIP>

> Now instead of pasting the code into the cell, I want to
> somehow tell the Sage notebook to execute the Sage code
> that exists in a file.  Is this possible?  If so, I am not having any
> luck
> figuring how to do it from the Sage reference manual, or any
> of the tutorials on the Sage Help web page.

Does any of the following commands help?

sage: load "/path/to/my/script.py"

or

sage: load "/path/to/my/script.sage"

Another command to try is "attach()". Perhaps the following blog post
would help:

http://mvngu.wordpress.com/2009/10/08/how-to-use-sage-as-a-python-library/

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to