emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] What is output for org-babel?


From: Dan Davison
Subject: Re: [Orgmode] What is output for org-babel?
Date: Sun, 08 Nov 2009 15:20:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Darlan Cavalcante Moreira <address@hidden> writes:

> COmments are inline.
>
> At Thu, 5 Nov 2009 11:17:39 +0000 (UTC),
> andrea Crotti <address@hidden> wrote:
>> 
>> I'm with org-mode 6.31a, I was trying to
>> get output in the exported files but I never see the output.
>> 
>> So I investigate and for example this
>> 
>> #+BEGIN_SRC python
>> import os; os.listdir(os.getcwd())
>> #+END_SRC
>
> This does not return anything for me either, but
> #+BEGIN_SRC python
> import os
> os.listdir(os.getcwd())
> #+END_SRC
> works as expected. This is strange, since "import os; os.listdir(os.getcwd())"
> is valid and will work if typed in the python interpreter directly.

This is a limitation of the current implementation of :results value
evaluation. For now, while we work out a good solution, semi-colon
separated statements on the same line (as well as multiline
continuations) should be avoided when using :results value (the
default). It does work with :results output:

#+BEGIN_SRC python :results output
import os; print os.listdir(os.getcwd())
#+END_SRC

Thanks for pointing this problem out.

Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]