emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode@gnu.org
Subject: python :session and org_babel_python_eoe
Date: Thu, 10 Feb 2011 17:46:19 +0000	[thread overview]
Message-ID: <20110210174619.202459f9@bill> (raw)

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

             reply	other threads:[~2011-02-10 17:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 17:46 Myles English [this message]
2011-02-10 18:45 ` python :session and org_babel_python_eoe Dan Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110210174619.202459f9@bill \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).