ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Apr 2011 16:43:50 -0500Calling Sage from a web pagehttp://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/Hello, I'm fairly new on the subject.
Can you tell me if you can find a tutorial on how to implement sage in a web page?
Should I create a page that takes some input from the visitor, does some calculations on a database with sage and, in the end, plot the output on the page.
something similar to the notebook but simplier and implementable in a web page.
I thank you in advance!Sun, 27 Mar 2011 02:11:30 -0500http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/Answer by Jason Grout for <p>Hello, I'm fairly new on the subject.
Can you tell me if you can find a tutorial on how to implement sage in a web page?
Should I create a page that takes some input from the visitor, does some calculations on a database with sage and, in the end, plot the output on the page.
something similar to the notebook but simplier and implementable in a web page.
I thank you in advance!</p>
http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?answer=12263#post-id-12263Also, check out [http://code.google.com/p/simple-python-db-compute/](http://code.google.com/p/simple-python-db-compute/), where a more sophisticated version of aleph.sagemath.org is being developed.Tue, 05 Apr 2011 16:43:50 -0500http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?answer=12263#post-id-12263Answer by radokirov for <p>Hello, I'm fairly new on the subject.
Can you tell me if you can find a tutorial on how to implement sage in a web page?
Should I create a page that takes some input from the visitor, does some calculations on a database with sage and, in the end, plot the output on the page.
something similar to the notebook but simplier and implementable in a web page.
I thank you in advance!</p>
http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?answer=12231#post-id-12231check out http://aleph.sagemath.org
It implements a simple communication protocol with 'evaluate' and 'get' requests only. There is no state saved in between evaluations. You can figure out the protocol from the JS code. It's as minimalistic as possible.
The service at sagemath is experimental (we used it for testing mainly). That means it might go down in the feature. However, you can get the server code from http://code.google.com/p/sage-aleph/ and run a similar service on your own server (even implement state if you need it).
Mon, 28 Mar 2011 08:56:11 -0500http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?answer=12231#post-id-12231Comment by cswiercz for <p>check out <a href="http://aleph.sagemath.org">http://aleph.sagemath.org</a>
It implements a simple communication protocol with 'evaluate' and 'get' requests only. There is no state saved in between evaluations. You can figure out the protocol from the JS code. It's as minimalistic as possible.</p>
<p>The service at sagemath is experimental (we used it for testing mainly). That means it might go down in the feature. However, you can get the server code from <a href="http://code.google.com/p/sage-aleph/">http://code.google.com/p/sage-aleph/</a> and run a similar service on your own server (even implement state if you need it).</p>
http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?comment=21938#post-id-21938That's really cool!Tue, 29 Mar 2011 11:15:15 -0500http://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/?comment=21938#post-id-21938