From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: How to get inline python code to work with :session option? Date: Sun, 29 Mar 2015 23:41:52 -0700 Message-ID: <438ABCF3-A5E3-4743-92DE-6B85E3E2EA04@haas.berkeley.edu> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcTOd-0006ks-Uy for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 02:42:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcTOZ-0007aU-VC for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 02:42:03 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:36279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcTOZ-0007aH-PD for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 02:41:59 -0400 Received: by pdcp1 with SMTP id p1so74483851pdc.3 for ; Sun, 29 Mar 2015 23:41:58 -0700 (PDT) Received: from [10.0.0.13] (c-50-136-135-172.hsd1.ca.comcast.net. [50.136.135.172]) by mx.google.com with ESMTPSA id om6sm9339414pdb.40.2015.03.29.23.41.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Mar 2015 23:41:55 -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: emacs-orgmode@gnu.org :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 src_python[]{return 2+3}=20 it gets expanded to src_python[]{return 2+3} {{{results(=3D5=3D)}}} =20 However, if I do the same with this code block,=20 src_python[:session]{return 2+3}=20 no results appear in the text buffer, and the mini-buffer displays the = message "Code block produced no output." How can I get inline code to work with :session?=20 Thanks. Richard Stanton