From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6IMBH47vp2RdSQEASxT56A (envelope-from ) for ; Fri, 07 Jul 2023 12:57:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cD5+Ho7vp2SiBAAAauVa8A (envelope-from ) for ; Fri, 07 Jul 2023 12:57:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 133FA38FBC for ; Fri, 7 Jul 2023 12:57:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHj8S-0000Jw-Qa; Fri, 07 Jul 2023 06:56:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHj8R-0000Jj-Nb for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 06:56:23 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHj8Q-0001xL-0c for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 06:56:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 191EB240028 for ; Fri, 7 Jul 2023 12:56:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688727380; bh=SMVydWMLe0o7ZJ+v3abs1oyCLZjESzY6RfP0ZfPSJmE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=hZcnnQJzf6a8CfzMbNEDbhs6RJGzy7ZbOY5lEjEfES5tBDcgLT7RF84NHQNJ3XZTp 9DaidVV+p+rQp8sJm7dZNrREHXFiDQ9AD3bGJtYizAxpN+Oo+r1xo3GezxOkveY6Bz Is1VNCmLsGjypskmdBobi1PJojZCGBOWdeMbrBfYIZFIGrBgNdTG5qv6gXmTSAXNXy OeGj1QXnQv+LqlDh6uAh9bk+mtMaznfmJ2gg/g6YjTV1K9nwVuqimz67cGszaCWjcE YSRCrrMOSXWka93bM7XrHNheCKkJyIwZeHUZ7BKdqMFdpMxRuNUd8RMqjaB9urQIo5 DMSrtxoFccBcw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qy9LW32mJz6twW; Fri, 7 Jul 2023 12:56:19 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-python: support header argument `:results file graphics' In-Reply-To: <871qhn2c0d.fsf@gmail.com> References: <877crh8htb.fsf@localhost> <871qhn2c0d.fsf@gmail.com> Date: Fri, 07 Jul 2023 10:56:20 +0000 Message-ID: <87y1jsvvl7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688727438; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ssf0xSaVU6jdHPkkOFCGajgwy+aQgf61PjawygSbV0s=; b=DTE3D8MYjQLoYpqVU6IHZXTiopPtCtEuXE0LzU9x4u66ZEKTJxHio9/QiOP+Xvy50yBd3I 6UnuOM9Hsyuxc4xwn29mvVaSGlRtVuTLv0smZPQ3K8ZcnOGNPZBDW4tBs5cujqkOgNsnwX o5g8sJQNZR1lz8jqTIP7VnCpxmaD4CE9Q/eN5PByI4R8F2csK8xgkfGw+7v4kRMHIonHkQ vrMcJ297IZXxdzrQy53rXfQUkcMgTOdlBX5lytMqjerTlNMuj/+OcUUDlitSLEQ4iDsgPa VFKIQF++1+GrKIzZqTg977Lq7+veRSIIheYAheavcopqt+AKTMX9LiC59e6BWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hZcnnQJz; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688727438; a=rsa-sha256; cv=none; b=WpWFWPlxhubOeAVMseBnJJAOXIqgzj48gn5pSEncXpb4FM440dHyk7H++7r352psQk7h/C aq1oRFTl1IMo4V5tMpc1SAjF8rmbm1K44WQHfXGopnmrbpD7hycLAndvRKYz5WB+nXo0CH ptLLuSwQG8tAhB4yhqfRrtH6I/XzQIj0kSzZtuJ7zKmaRx+aMIkpTQwBWb5vzMC5wqc+dK DkgbsShQ12ssf2PMs4N1aWGsGjWnEjYZwbevyEbgcUoX1kfz62wcMW5sUzf5NxqqxofNLe zoINjRif+Ri92qcd8nNZ5B2iqeof7SeQXLhUNmEFsADGgj500epfxcl1BD0t4w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.74 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hZcnnQJz; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 133FA38FBC X-Spam-Score: -4.74 X-TUID: 6m8D8t8l/4od Jack Kamm writes: > ":results graphics file" is used this way in ob-R and ob-julia, and also > in the testing files test-ob-octave.el and ob-maxima-test.org. > > ":results graphics" just means that the result from > org-babel-execute:lang isn't written to the file by > org-babel-execute-src-block. This is needed for plotting because > org-babel-execute:lang usually writes directly to the file, rather than > returning a byte stream for the PNG or SVG. > > So the Org manual's wording about > "side-effects" and "output not written to disk" is correct in a sense, > but also confusing (readers should not have to know about these internal > implementation details). What you describe is a special feature in _some_ babel backends. More generally, users must take care about writing the file to disk by themselves, as illustrated in the wget example. It may be worth mentioning though that some babel backends take care about writing the file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at