Thanks for your patience.  I am using xwindows on the CentOS server.
When I load the twist.py file using gedit, it looks like an html
file.  When I get into Sage I have to type each line by hand?  Is
there a easier way?  When I am finished the notebook is started.  Then
what do I do?

On May 12, 6:16 pm, Jason Grout <[email protected]> wrote:
> Mikie wrote:
>
>  > I have the "twist.py" file.  What do I do with it?  It is an html
>  > file?
>  >
>
> It is a python file, which is the code and documentation for the simple
> API.  In it, you'll find some examples of how to start up Sage and use
> the API.  Look at the lines that start with "sage: " for what to type
> into Sage.  You'll notice a lot of lines that are retrieving URLs.  That
> is what a form would have to do to execute calculations.
>
> You can read just the documentation (which gives all the examples) by
> typing the two commands I mentioned earlier into sage:
>
> sage: import sage.server.simple.twist
> sage: sage.server.simple.twist?
>
> Jason
>
>  > On May 12, 10:20 am, Jason Grout <[email protected]> wrote: >> 
> Mikie wrote:
>
>  >>> Does anyone have a simple API that takes input from a form and uses
>  >>> Sage to calculate the solution and displays it on the hrml page.
>  >>> I don't want to use the notebook.
>  >>> I have CentOS running in a local network with Sage and Moodle.
>  >>> I thought I seen something like this on Wiki.
>  >> You can read about the simple web API by doing:
>  >>
>  >> sage: import sage.server.simple.twist
>  >> sage: sage.server.simple.twist?
>  >>
>  >> I guess this hasn't been added to the reference manual yet.
>  >>
>  >> Jason
>  >
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to