You can write a Python CGI file which interacts with the Sage interpreter instead:
#!SAGEPATH from sage import * print RR(4) The problem with this is that you have to launch Sage every time. It would probably be better to use the single-cell server which is now in development: https://github.com/jasongrout/simple-python-db-compute On Aug 6, 11:04 am, Christian Stump <christian.st...@gmail.com> wrote: > Hi, > > I would like to be able to set up a web page which provides a > computation performed in Sage. Someone can type two numbers into boxes > and click a button, and then these numbers are send to the server (via > GET), and the server runs a sage command computing the sum of these, > and returns the answer. (Of course, the actual input, computation, and > output is actually slightly more compliated...) > > I saw that there is a javascript function "async_request" which > performs this inside the nb, but I don't see how to set up what I want > easily that way. Did someone do sth like that already, or can I get > some hints on how to do that? > > Thanks, Christian -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org