From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: python :session does return Date: Tue, 14 Jan 2014 08:38:21 -0500 (EST) Message-ID: Reply-To: Ken Mankoff Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34CP-00044I-SL for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 08:38:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W34CG-0003gy-Hn for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 08:38:33 -0500 Received: from mail-qa0-x22f.google.com ([2607:f8b0:400d:c00::22f]:56917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34CG-0003gq-DN for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 08:38:24 -0500 Received: by mail-qa0-f47.google.com with SMTP id j5so3354916qaq.20 for ; Tue, 14 Jan 2014 05:38:23 -0800 (PST) Received: from gorgonzola.whoi.edu (gorgonzola.whoi.edu. [128.128.28.197]) by mx.google.com with ESMTPSA id o5sm767890qeg.2.2014.01.14.05.38.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 05:38:22 -0800 (PST) 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: Org-mode I've seen various historical issues with :session but it seems I may have a different problem. This is the latest org in emacs 24.3. If I do not have :session, then everything works just fine. If I C-c C-c in the following code: #+BEGIN_SRC python :session transect import numpy as np x = np.arange(12) #+END_SRC Emacs hangs the first time with minibuffer message of "Sent python-eldoc-setup-code". If I C-g, I can edit the org buffer again. All other invocations of that code and the minibuffer message is "executing Python code block...", but still emacs hangs until I C-g. If I look at the *transect* buffer, I see the following. The code runs just fine, but for some reason it does not return. -k. Enthought Canopy Python 2.7.3 | 64-bit | (default, Dec 2 2013, 16:19:29) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. import numpy as np Start .pythonrc End .pythonrc >>> import numpy as np x = np.arange(12) x = np.arange(12) open('/var/folders/60/jb7kfrsn2jd90hpcgj4m_wrc0000gn/T/babel-28022EFF/python-28022Yjm', 'w').write(str(_)) open('/var/folders/60/jb7kfrsn2jd90hpcgj4m_wrc0000gn/T/babel-28022EFF/python-28022Yjm', 'w').write(str(_)) 'org_babel_python_eoe' 'org_babel_python_eoe' >>> >>> >>> >>> >>> >>> Traceback (most recent call last): File "", line 1, in NameError: name '_' is not defined >>> >>> >>> 'org_babel_python_eoe' >>> import numpy as np import numpy as np x = np.arange(12) >>> x = np.arange(12) >>> open('/var/folders/60/jb7kfrsn2jd90hpcgj4m_wrc0000gn/T/babel-28022EFF/python-28022lts', 'w').write(str(_)) >>> open('/var/folders/60/jb7kfrsn2jd90hpcgj4m_wrc0000gn/T/babel-28022EFF/python-28022lts', 'w').write(str(_)) >>> >>> 'org_babel_python_eoe' >>> 'org_babel_python_eoe' 'org_babel_python_eoe' >>>