Re: [sage-devel] Re: IPC with SAGE
My problem is that I want to access the Sage console installed on a httpd server using PHP but I can't use the notebook because my chief wants a custom editor and a console. Moreover, I need a persistent Sage session to preserve all defined variables until the user close its connection with the App. Maybe is useful to use the same code of the Sage Notebook but I don't know where to look. Any help is well received. Sorry about my grammar. Thanks in advance! -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: IPC with SAGE
Jorge Catumba Ruiz jorgere...@gmail.com writes: Hi, I was wondering if is possible to use IPC mechanisms with SAGE. That its important because I'm working on a project in my university. Sage is just running on Python, so you can use any IPC mechanisms that exist for Python (and I'm sure there are plenty). -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: IPC with SAGE
AFAIK, pexpect provides IPC (Inter-Process Communication?) in Sage, and is used by a number of Sage packages. On Tuesday, 22 May 2012 08:50:59 UTC+2, Keshav Kini wrote: Jorge Catumba Ruiz jorgere...@gmail.com writes: Hi, I was wondering if is possible to use IPC mechanisms with SAGE. That its important because I'm working on a project in my university. Sage is just running on Python, so you can use any IPC mechanisms that exist for Python (and I'm sure there are plenty). -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: IPC with SAGE
Dima Pasechnik dimp...@gmail.com writes: AFAIK, pexpect provides IPC (Inter-Process Communication?) in Sage, and is used by a number of Sage packages. While it is true that we use pexpect a lot, it is a particularly crude kind of IPC, and we only use it because it's a quick and dirty solution when you have a lot of control over one side of the connection - in our case, the Sage library - and little or no control over the other - in our case, various other mathematics software, which, though open source, we would prefer to avoid extensively patching to create an interface for IPC. Good IPC solutions generally involve some support from both sides, and I wouldn't really suggest pexpect to someone looking for general IPC mechanisms available in Sage, especially when there are doubtless many other, better ways to implement IPC that are easily available as Python modules... it would be like recommending a screen scraper to someone looking for a parser :) -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: IPC with SAGE
Maybe you should state at least a few details of your problem if you want meaningful advice. I like zeromq/pyzmq which is currently an optional package http://trac.sagemath.org/sage_trac/ticket/12843 Its very easy to implement various messaging patterns without getting bogged down in details of implementation. Also offers the same api for both IPC and networking... On Tuesday, May 22, 2012 12:05:16 AM UTC-4, Jorge Catumba Ruiz wrote: Hi, I was wondering if is possible to use IPC mechanisms with SAGE. That its important because I'm working on a project in my university. Thanks in advance. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org