Ask Your Question
1

Calling Sage from a web page

asked 2011-03-27 09:11:30 +0200

Israafiyl gravatar image

updated 2011-03-27 09:40:30 +0200

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!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-03-28 15:56:11 +0200

radokirov gravatar image

check 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).

edit flag offensive delete link more

Comments

That's really cool!

cswiercz gravatar imagecswiercz ( 2011-03-29 18:15:15 +0200 )edit
0

answered 2011-04-05 23:43:50 +0200

Jason Grout gravatar image

Also, check out http://code.google.com/p/simple-python-db-compute/, where a more sophisticated version of aleph.sagemath.org is being developed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-27 09:11:30 +0200

Seen: 488 times

Last updated: Apr 05 '11