On Sun, Mar 14, 2010 at 8:08 AM, Eggart Mumie
<[email protected]> wrote:
> I am a newbie both to SAGE as well as to Python.
> I am very enthusiastic about SAGE
> which I am about to get to know using its web interface only.
>
> I would like to know whether I could write a user defined module,
> store it on e.g. our (!) SAGE server sage.informatik.hs-bremen.de
>
> and access functions of such a module by importing the module into
> another module on the the SAGE server.


Yes. I prefer attach over import for such modules.
At the command line of Sage, type

attach?

and read the docstring for examples of how it can be used.


> I searched the reference manual  -- in vain,
>
> I found outdated
> http://www.msri.org/about/computing/docs/sage/prog/node5.html,
>
> I searched http://groups.google.com/group/sage-support -- in vain
> whereas according to Allen B. Downey: Python for Software Design, Cambridge
> 2009, p167
>
> it should be very easy to write the user defined module foo:
> alledgedly I just put my (SAGE) code in some file foo.py and import foo.
> Is there an equivalent approach working on the web interface?
>
>
> sorry for me desperately asking maybe dumb questions and taking your time,
> EM
>
> --
> 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
>

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