From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Fwd: run python from org, draft Date: Fri, 29 Mar 2013 08:11:53 -0400 Message-ID: References: <5154BC51.1050001@easy-emacs.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0111c13037d39204d90f2d3a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULYA1-0008Nn-R6 for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULY9y-0007Ev-Cf for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:11:57 -0400 Received: from mail-oa0-f46.google.com ([209.85.219.46]:49583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULY9y-0007Dp-7k for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:11:54 -0400 Received: by mail-oa0-f46.google.com with SMTP id k1so373247oag.5 for ; Fri, 29 Mar 2013 05:11:53 -0700 (PDT) In-Reply-To: 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: Orgmode Mailing List --089e0111c13037d39204d90f2d3a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable [sorry, forgot to "reply all" -- Gary] ---------- Forwarded message ---------- From: Gary Oberbrunner Date: Thu, Mar 28, 2013 at 10:43 PM Subject: Re: [O] run python from org, draft To: Andreas R=F6hler Does this assume org-babel-python-mode is set to 'python-mode? The default is 'python, I believe. I don't think you should unconditionally call py-send-string-return-output like that. Also, why would you avoid calling org-babel-python-evaluate? Where in your patch would it account for the setting of session, result-type or result-params? On Thu, Mar 28, 2013 at 5:55 PM, Andreas R=F6hler < andreas.roehler@easy-emacs.de> wrote: > Hi, > > as running python from org-source has been reported broken, > herewith a patch, which allows basic usage. > > Requires python-mode.el-6.1 > > https://launchpad.net/python-**mode/trunk/6.1.1/+download/** > python-mode.el-6.1.1.tar.gz > > Just a draft, not thought as implementation, > > Andreas > --=20 Gary --=20 Gary --089e0111c13037d39204d90f2d3a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
[sorry, forgot to "reply all" -- Gary]

---------- Forwarded message ----------
From: <= b class=3D"gmail_sendername">Gary Oberbrunner <garyo@oberbrunner.com><= br> Date: Thu, Mar 28, 2013 at 10:43 PM
Subject: Re: [O] run python from org= , draft
To: Andreas R=F6hler <andreas.roehler@easy-emacs.de>


Does this assume=A0org-babel-python-mode is set to 'python-mode? =A0Th= e default is 'python, I believe. =A0I don't think you should uncond= itionally call=A0py-send-string-return-output like that.

Also, why would you avoid calling org-babel-python-evaluate? =A0Where = in your patch would it account for the setting of session, result-type or r= esult-params?



On Thu, Mar 28, 2013 at 5:55 PM, Andreas= R=F6hler <andreas.roehler@easy-emacs.de> wrote:=
Hi,

as running python from org-source has been reported broken,
herewith a patch, which allows basic usage.

Requires python-mode.el-6.1

https://launchpad.net/python-= mode/trunk/6.1.1/+download/python-mode.el-6.1.1.tar.gz

Just a draft, not thought as implementation,

Andreas



--
Gary



--
Gary --089e0111c13037d39204d90f2d3a--