Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Interface between Sage and Python


I wonder if there is a way (or an API) that one can use Sage inside a Python code.

More specifically, I have a system of equations defined inside a big Python code, and I want to make Sage solve the equations and give the solutions back to Python.

Using the Python of Sage is out of option, unfortunately. Rather, I want to 'import' Sage onto Python and use its functionality as I import other Python libraries.