From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: How to get inline python code to work with :session option? Date: Mon, 30 Mar 2015 07:29:08 -0400 Message-ID: References: <438ABCF3-A5E3-4743-92DE-6B85E3E2EA04@haas.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcXsY-0008OM-Ds for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 07:29:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcXsU-0004rc-DI for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 07:29:14 -0400 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:35944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcXsU-0004rP-9U for emacs-orgmode@gnu.org; Mon, 30 Mar 2015 07:29:10 -0400 Received: by qcgx3 with SMTP id x3so10301916qcg.3 for ; Mon, 30 Mar 2015 04:29:09 -0700 (PDT) In-reply-to: <438ABCF3-A5E3-4743-92DE-6B85E3E2EA04@haas.berkeley.edu> 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: Richard Stanton Cc: emacs-orgmode@gnu.org I've modified my config to use IPython. doesn't work: src_python[]{return 2+3} {{{results(==)}}} works w/o 'return': src_python[:session]{2+3} {{{results(=5=)}}} doesn't work: src_python[:session]{return 2+3} -k. On 2015-03-30 at 02:41, Richard Stanton wrote: > :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, > > src_python[]{return 2+3} > > it gets expanded to > > src_python[]{return 2+3} {{{results(=5=)}}} > > However, if I do the same with this code block, > > src_python[:session]{return 2+3} > > 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? > > Thanks. > > Richard Stanton