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-- From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <959DECCA-B2D8-4599-ABF1-52DA0D0FBC27@ucsd.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44413) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iguqp-0003FE-8o for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 13:12:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iguqn-0004Ld-VN for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 13:12:11 -0500 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:30826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iguqn-0004J1-F9 for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 13:12:09 -0500 In-Reply-To: Content-Language: en-US Content-ID: <0DD966DA616A0D4CACB2CE7A6EF90320@AD.UCSD.EDU> 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: Nathan Neff Cc: emacs-orgmode > On Dec 15, 2019, at 1:55 PM, Nathan Neff wrote: >=20 > Hello all, >=20 > I just found the org-babel-min-lines-for-block-output variable. >=20 > I have a table like this: >=20 > #+RESULTS: people-table > | User | ID | Homepage | > |-------+----+--------------------------| > | Bob | 1 | http://example.com/bob | > | Steve | 2 | http://example.com/steve | >=20 > And a code block like this: >=20 > #+begin_src python :var people=3Dpeople-table :results output=20 > for i, person in enumerate(people): > print('- ' + person[0]) > print(" " + person[2]) > #+end_src >=20 > I would like to set org-babel-min-lines-for-block-output variable for=20 > only the above code block. Is this possible using #+property or somethin= g like that? > Or do I need to have a "wrapper" elisp block around my python code? Use the `:wrap example' header. HTH, CCB