Ask Your Question

MichelTem's profile - activity

2017-02-26 21:34:52 -0500 received badge  Famous Question (source)
2014-04-12 17:49:04 -0500 received badge  Notable Question (source)
2013-03-12 12:52:47 -0500 received badge  Popular Question (source)
2012-02-27 22:19:00 -0500 received badge  Supporter (source)
2012-02-27 22:18:58 -0500 marked best answer Call Sage functions from Node.js or other web app/service

The Sage Cell server acts as a web service to perform computations and return results, plots, etc. The iphone and android apps use it as a backend, for example.

We're working on good documentation for it. Here are some examples, though:

http://aleph.sagemath.org (see the bottom of the page for messages sent back and forth to the web service).

Code: https://github.com/sagemath/sagecell

Embedding documentation: https://github.com/sagemath/sagecell/... (see the bottom for a small example)

Another example: http://utmost.aimath.org/ (see bottom of page)

2012-02-27 22:18:58 -0500 received badge  Scholar (source)
2012-02-03 21:11:21 -0500 received badge  Editor (source)
2012-02-03 21:01:25 -0500 asked a question Call Sage functions from Node.js or other web app/service

Hi, I have a Node.js app that needs to use a few of Sagemath's functions. I have no idea at all how I can call into Sage from a js backend, or even if it's possible to call it from an external process. Obviously being able to call Sage to plot a graph and receiving the result as a stream or saved to disk would be optimal. But so far, I would be happy if I could call factor() from a web page and display the results. Anyone has an idea how to accomplish this? I don't mind having a Python layer around Sage if thats what it takes, but any code snippets or pointers to existing libraries would be highly appreciated. Thanks.