[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] python :session and org_babel_python_eoe
From: |
Myles English |
Subject: |
[Orgmode] python :session and org_babel_python_eoe |
Date: |
Thu, 10 Feb 2011 17:46:19 +0000 |
Hello,
Is this behaviour expected?:
#+begin_src python :session
import sys
#+end_src
#+results:
But in the python interpreter there is this:
"""
>>> import sys
open('/home/myles/tmp/scratch/python-4938gzQ', 'w').write(str(_))
'org_babel_python_eoe'
>>> >>> >>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
>>> >>> >>> 'org_babel_python_eoe'
>>>
"""
The sys module did indeed import correctly though. And that file
(/home/myles/tmp/scratch/python-4938gzQ) is empty.
Versions:
- Python 2.7.1 (r271:86832, Jan 6 2011, 11:45:30) [GCC 4.5.2] on
linux2
- orgmode from git 7473e3 Wed Feb 9 17:30
- GNU Emacs 23.2.1(x86_64-unknown-linux-gnu)
It looks related to the issue, described as being fixed, in this
thread: ("org-babel :session breaks returning things with python?")
http://news.gmane.org/find-root.php?message_id=%3c871v669swp.fsf%40gmail.com%3e
Thanks,
Myles
- [Orgmode] python :session and org_babel_python_eoe,
Myles English <=