Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Call safe functions from Node.js

Hi, I have a Node.js app that needs to use a few of the Sagemath 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 it 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 displays 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.

click to hide/show revision 2
No.2 Revision

Call safe Sage functions from Node.jsNode.js or other web app/service

Hi, I have a Node.js app that needs to use a few of the Sagemath 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 it 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 displays 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.