From: Scott May <bscottmay@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: org-babel: Why isn't =:results value= working with (my) python?
Date: Thu, 4 Feb 2010 07:06:51 -0800 (PST) [thread overview]
Message-ID: <852251.91747.qm@web65608.mail.ac4.yahoo.com> (raw)
Using org-babel, the following example produces no output for me when I execute using C-c C-c:
#+begin_src python :results value
2 + 2
#+end_src
#+results:
: None
In my messages buffer I see the following:
: (Shell command succeeded with no output)
Now the equivalent emacs-lisp example does work:
#+begin_src emacs-lisp :results value
(+ 2 2)
#+end_src
#+results:
: 4
Furthermore,
#+begin_src python :results output
print(2 + 2)
#+end_src
#+results:
: 4
works as expected.
Am I missing something obvious? Is the problem with my python setup, or perhaps org-babel-python?
I have tested this on both my Windows and Ubuntu setups. I am using org version 6.34trans.
Cheers,
Scott
next reply other threads:[~2010-02-04 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 15:06 Scott May [this message]
2010-02-04 15:27 ` org-babel: Why isn't =:results value= working with (my) python? Thomas S. Dye
2010-02-04 16:16 ` Dan Davison
2010-02-04 16:36 ` Scott May
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=852251.91747.qm@web65608.mail.ac4.yahoo.com \
--to=bscottmay@yahoo.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).