On Tue, Jan 13, 2009 at 12:11 AM, Mike Hansen <mhan...@gmail.com> wrote:
>
> On Mon, Jan 12, 2009 at 8:57 PM, William Stein <wst...@gmail.com> wrote:
>> Do you have any idea how this would work?  I mean, what would Sage
>> actually do?   I don't mean "how would it be implemented in Sage", but
>> if you could program sage in natural language, how would you describe
>> what you're asking for right now?  Just curious.
>
> I can envision two
>
> 1. Implement a chdir() method for the Maple interface which changes
> Maple's working directory and tell Maple's plot command always to
> write to a gif in the working directory.  I don't know if either of
> these are doable from the Maple side.

That seems like a good idea.

>
> 2. Add some sort of hook in so that a user can specify code to execute
> before each cell is executed.  This is a bit trickier since you need
> to add a mechanism for the notebook to send information to the
> ExpectInterface object that is performing the .eval()'s.

If it's a %maple cell this is probably odable.  Just redefine the maple instance
that is in the globals() for the worksheet's session to be an object
with an eval
method that does whatever you want followed by call to the original
maple object.
(I'm sure this makes sense to Mike but maybe not the original poster.)

>
> I think the first option would definitely be the cleanest / least
> amount of work.

Yep.


>> Thus my interest in just how tightly integrated Sage and Maple could
>> become.

I think much much more work could be put into tightening the
Sage/Maple interface.
Currently, by far the most well-developed sage interfaces are the Maxima one and
the Magma one.   Much could be done to improve the Maple interface.  It would
be great if there were a student who could work on this...

 -- William

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

Reply via email to