On May 6, 11:58 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 11:41 PM, Amir <[EMAIL PROTECTED]> wrote:
>
> >  Can I start a Sage session from C?
>
> Yes in theory.  See this:
>
> http://docs.python.org/ext/embedding.html
>
> I have *never* done this, nor have I ever seen a demo of this in Sage.
> So don't think it will be very easy.  I.e., it might be a pretty complicated.
> You should definitely try Mike Hansen's suggestion in this thread first.

Thanks. I've used Pythonika. It's last revision was 12/11/06 and is
buggy on my platform, possibly due to Mathematica version change from
5.2 to 6 since the last update. I will try to see why and possibly
check with the author.

I've also read parts of the python embedding docs. I was assuming to
go from a vanilla python interpreter session to a sage session, if
possible, would involve a nontrivial series of python commands. So
calling Pythonika then these commands would maybe not be a good way to
do it.

>
> > I would need to pass commands, set
> >  and get variables, and cleanly terminate the session. I would like to
> >  do this as a mathlink module to call Sage from Mathematica. I'm new to
> >  Sage and python.
>
> >  Thanks,
> >  Amir.
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org

Amir.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to