emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel: Set org-babel-min-lines-for-block-output for single code block?
@ 2019-12-15 21:55 Nathan Neff
  2019-12-16 18:11 ` Berry, Charles
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Neff @ 2019-12-15 21:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

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?

Thanks,
--Nate

[-- Attachment #2: Type: text/html, Size: 1244 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-16 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-15 21:55 Babel: Set org-babel-min-lines-for-block-output for single code block? Nathan Neff
2019-12-16 18:11 ` Berry, Charles

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).