emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@health.ucsd.edu>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Babel: Set org-babel-min-lines-for-block-output for single code block?
Date: Mon, 16 Dec 2019 18:11:48 +0000	[thread overview]
Message-ID: <959DECCA-B2D8-4599-ABF1-52DA0D0FBC27@ucsd.edu> (raw)
In-Reply-To: <CAC=HedA=PFdjLSHSP0XJE6uRNPhk1-UmyTfUfS7qPUETkHUsDQ@mail.gmail.com>



> On Dec 15, 2019, at 1:55 PM, Nathan Neff <nathan.neff@gmail.com> 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	other threads:[~2019-12-16 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=959DECCA-B2D8-4599-ABF1-52DA0D0FBC27@ucsd.edu \
    --to=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=nathan.neff@gmail.com \
    /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).