Using standalone sage function inside python

Inside sage, latex, there is a function that I want to use directly from the command line without discarding the sage client to the sage. one way, I think it is possible, is to include this sage module in my python script.

Using the install sage patch does not work.

any ideas?

+5
source share
2 answers

You cannot just install Sage as a package with a package, and Sage has a lot of non-Python code, so it would be difficult to do it a priori.

However, you can easily call Sage from a script. Here is an example.

, , ask.sagemath.org - , stackoverflow Sage.

+12

, , script, Python, Sage.

Sage docs http://www.sagemath.org/doc/faq/faq-usage.html#how-do-i-import-sage-into-a-python-script

Sage Python script. , Python script, Python, Sage; Python 2.6.x. Sage, Python script:

from sage.all import *
+4

All Articles