Hi, many of the texts and documentations assume one is using the SageMath 
kernel. So far I see one FAQ address using sage as a library.

But using sage as a library would certainly has a different behavior with 
sage itself. e.g. Rational('3 / 2') rather than 3 / 2, and displaying in 
latex seems more indirect:

from sage.misc.latex import MathJaxfrom IPython.display import HTML

MATHJAX = MathJax()
def print_latex(expression, engine=MATHJAX):
    return HTML(str(engine(expression)))

However I couldn’t find a way to show plots. e.g. plot results in Graphics 
object consisting of 1 graphics primitive and plot3d results in Graphics3d 
Object. How should these graphic objects be shown as images? The closet I 
got is .dumps or .matplotlib methods but they didn’t work.

In general, are there documentations for using sage as a python library, 
and are there any materials that help Python programmers to pick up sage? 
i.e. assuming one knows Python already, used to “Pythonism”, and the common 
Python stacks such as Matplotlib, etc.

Thanks.
​

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to