First time here? Check out the FAQ!

Ask Your Question
1

Calling Sage from a web page

asked 14 years ago

Israafiyl gravatar image

updated 14 years ago

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!

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
3

answered 14 years ago

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

Preview: (hide)
link

Comments

That's really cool!

cswiercz gravatar imagecswiercz ( 14 years ago )
0

answered 14 years ago

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.

Preview: (hide)
link

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: 14 years ago

Seen: 620 times

Last updated: Apr 05 '11