Ask Your Question

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

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

radokirov gravatar image

check out 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 and run a similar service on your own server (even implement state if you need it).

edit flag offensive delete link more


That's really cool!

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

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

Jason Grout gravatar image

Also, check out, where a more sophisticated version of 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


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

Seen: 506 times

Last updated: Apr 05 '11