From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Kamm Subject: Re: ob-python.el: questions about output Date: Sun, 23 Feb 2020 20:52:08 -0800 Message-ID: <87eeuky4cn.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j65k9-0006mu-G6 for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 23:53:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j65k8-0004F2-Gv for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 23:53:21 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:37356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j65k8-0004B7-9K for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 23:53:20 -0500 Received: by mail-pj1-x1030.google.com with SMTP id m13so3615095pjb.2 for ; Sun, 23 Feb 2020 20:53:20 -0800 (PST) In-Reply-To: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: R C , emacs-orgmode@gnu.org Hi RC, R C writes: > 1. Is it possible to have both types of output displayed from a single src > block to avoid having to duplicate the src block, using :exports results > for one and :exports both for the other? No, there's no option to output both ":results output" and ":results value". If you want both output and value results, and want to avoid executing the same code twice, you could consider using a pair of ":session" blocks, for example: #+begin_src python :session session1 :results output print("Block that does some computations") x = 1+1 #+end_src #+begin_src python :session session1 :results output x #+end_src > 2. Is there an option to suppress export of the the last line of the src > block which is specific to the ob-python implementation. I'm not sure what you mean by this, could you give an example of what the observed and desired behaviors are?