From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott May Subject: org-babel: Why isn't =:results value= working with (my) python? Date: Thu, 4 Feb 2010 07:06:51 -0800 (PST) Message-ID: <852251.91747.qm@web65608.mail.ac4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd3IT-0006wd-On for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 10:07:09 -0500 Received: from [199.232.76.173] (port=34128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd3IS-0006wF-RG for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 10:07:08 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd3IR-0007Sd-FM for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 10:07:08 -0500 Received: from n3b.bullet.mail.ac4.yahoo.com ([76.13.13.73]:33723) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Nd3IQ-0007R2-Gr for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 10:07:07 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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