emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Babel: Set org-babel-min-lines-for-block-output for single code bloc


From: Berry, Charles
Subject: Re: Babel: Set org-babel-min-lines-for-block-output for single code block?
Date: Mon, 16 Dec 2019 18:11:48 +0000


> On Dec 15, 2019, at 1:55 PM, Nathan Neff <address@hidden> wrote:
> 
> Hello all,
> 
> I just found the org-babel-min-lines-for-block-output variable.
> 
> I have a table like this:
> 
> #+RESULTS: people-table
> | User  | ID | Homepage                 |
> |-------+----+--------------------------|
> | Bob   |  1 | http://example.com/bob   |
> | Steve |  2 | http://example.com/steve |
> 
> And a code block like this:
> 
> #+begin_src python :var people=people-table :results output 
> for i, person in enumerate(people):
>     print('- ' + person[0])
>     print("  " + person[2])
> #+end_src
> 
> I would like to set org-babel-min-lines-for-block-output variable for 
> only the above code block.  Is this possible using #+property or something 
> like that?
> Or do I need to have a "wrapper" elisp block around my python code?


Use the `:wrap example' header.

HTH,

CCB





reply via email to

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