From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Emacs-orgmode Digest, Vol 109, Issue 35 Date: Mon, 30 Mar 2015 10:20:07 -0700 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdMH-0007Jr-Gu for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 13:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcdME-0001AQ-CP for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 13:20:17 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdME-0001AC-6L for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 13:20:14 -0400 Received: by padcy3 with SMTP id cy3so172824745pad.3 for ; Mon, 30 Mar 2015 10:20:13 -0700 (PDT) Received: from [10.0.1.2] (mortgage.Haas.Berkeley.EDU. [128.32.75.82]) by mx.google.com with ESMTPSA id pf3sm11151546pdb.3.2015.03.30.10.20.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Mar 2015 10:20:08 -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: emacs-orgmode@gnu.org > Date: Sun, 29 Mar 2015 23:41:52 -0700 > From: Richard Stanton > To: emacs-orgmode@gnu.org > Subject: [O] How to get inline python code to work with :session > option? > Message-ID: <438ABCF3-A5E3-4743-92DE-6B85E3E2EA04@haas.berkeley.edu> > Content-Type: text/plain; charset=3Dus-ascii >=20 > :session doesn't seem to play well with inline code blocks. For = example, if I press C-c C-c with the cursor in the middle of the = following inline code,=20 >=20 > src_python[]{return 2+3}=20 >=20 > it gets expanded to >=20 > src_python[]{return 2+3} {{{results(=3D5=3D)}}} =20 >=20 > However, if I do the same with this code block,=20 >=20 > src_python[:session]{return 2+3}=20 >=20 > no results appear in the text buffer, and the mini-buffer displays the = message "Code block produced no output." >=20 > How can I get inline code to work with :session?=20 >=20 > Thanks. >=20 > Richard Stanton An answer to my own question, in case it=E2=80=99s useful to others: = With the :session option, you need to drop the =E2=80=9Creturn=E2=80=9D.=