emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* python :session does return
@ 2014-01-14 13:38 Ken Mankoff
  2014-01-14 15:34 ` Ken Mankoff
  2014-01-14 23:04 ` John Hendy
  0 siblings, 2 replies; 11+ messages in thread
From: Ken Mankoff @ 2014-01-14 13:38 UTC (permalink / raw)
  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 "<stdin>", line 1, in <module>
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'
>>>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-01-16 20:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 13:38 python :session does return Ken Mankoff
2014-01-14 15:34 ` Ken Mankoff
2014-01-14 16:32   ` Nick Dokos
2014-01-14 17:48     ` Ken Mankoff
2014-01-14 17:55       ` Nick Dokos
2014-01-14 18:25         ` Ken Mankoff
2014-01-14 23:04 ` John Hendy
2014-01-15 12:22   ` Ken Mankoff
2014-01-15 19:01     ` Eric Schulte
2014-01-15 21:08     ` John Hendy
2014-01-16 20:14       ` Ken Mankoff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).