From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Babel: Set org-babel-min-lines-for-block-output for single code block? Date: Sun, 15 Dec 2019 15:55:57 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000092c3d60599c52961" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34178) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igbs4-0007Jh-QK for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 16:56:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igbs2-0003RV-R3 for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 16:56:12 -0500 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]:44469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igbs1-0003P5-UV for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 16:56:10 -0500 Received: by mail-il1-x12a.google.com with SMTP id z12so3826348iln.11 for ; Sun, 15 Dec 2019 13:56:09 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --00000000000092c3d60599c52961 Content-Type: text/plain; charset="UTF-8" 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 --00000000000092c3d60599c52961 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I just = found the org-babel-min-lines-for-block-output variable.

I have=C2=A0a table like this:

#+RESUL= TS: people-table
| User =C2=A0| ID | Homepage =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
|-------+----+----------= ----------------|
| Bob =C2=A0 | =C2=A01 | http://example.com/bob =C2=A0 |
| Steve | =C2=A02 | http://example.com/steve |

And a code block = like this:

#+begin_src python :var people=3Dpeople= -table :results output=C2=A0
for i, person in enumerate(peopl= e):
=C2=A0 =C2=A0 print('- ' + person[0])
=C2= =A0 =C2=A0 print(" =C2=A0" + person[2])
#+end_src
=

I would like to set org-babel-min-lines-for-block-outpu= t variable for=C2=A0
only the above code block.=C2=A0 Is this pos= sible using #+property or something like that?
Or do I need to ha= ve a "wrapper" elisp block around my python code?

<= /div>
Thanks,
--Nate

--00000000000092c3d60599c52961--