From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Fwd: run python from org, draft Date: Fri, 29 Mar 2013 14:25:56 -0600 Message-ID: <874nfuar1q.fsf@gmail.com> References: <5154BC51.1050001@easy-emacs.de> <5155A97D.2090907@easy-emacs.de> <87sj3e6y5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfvV-0002Gz-Rw for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULfvU-0004la-41 for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:29:29 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:40182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfvT-0004lV-U9 for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:29:28 -0400 Received: by mail-pd0-f170.google.com with SMTP id 4so389584pdd.15 for ; Fri, 29 Mar 2013 13:29:27 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gary Oberbrunner Cc: emacs-orgmode Gary Oberbrunner writes: > On Fri, Mar 29, 2013 at 11:09 AM, Eric Schulte wrote: > >> >> Because of quirks of the python language, when executing outside of a >> session, it is necessary to explicitly specify a return. >> ... >> >> This is clearly stated in the Python documentation on Worg. >> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html > > > ... which I just wrote! Glad it's already useful! :-) > Ah, that's great. Thanks! > > I think in any case you will need my recent patch if you want to use > session mode. > > If testing is holding up application of my patch, I can test it on Linux > and Mac. Hi Gary, I just looked at your patch (sorry I missed it earlier). My recent changes do many of the same things (namely let-binding `python-shell-buffer-name'). Everything is working currently (at least on Linux). From reading your post it sounds like "-i" must be added to the python command on windows. I just pushed up that added functionality, can you let me know if anything else needs to be done to get this working on windows? Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte