From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4Gl2A423sGR2hAEASxT56A (envelope-from ) for ; Fri, 14 Jul 2023 04:48:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WDh7A423sGTWZQAAauVa8A (envelope-from ) for ; Fri, 14 Jul 2023 04:48:45 +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 11B2143174 for ; Fri, 14 Jul 2023 04:48:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YUn4RIhy; dmarc=pass (policy=none) header.from=gmail.com; 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=1689302924; a=rsa-sha256; cv=none; b=D6Lz7s1BnvmbKr8/jlCVXCx4buD1SDBDAPgs535N6ux9uUbSRzSXgbfBBgtry79GyPlCfQ WCM7xkqULqHbZuoUG0ej+Dikl0jBJv4ZBzSyI1h9apcRrrypK7+XtoC4l//H3EZkUE8vIB RApfoAjn4YN4nztWP2ur5kPo5Bx1CubBcbUmuS6Ijx10fceOJHaxU/7h98I3MOhk6I3gTN LPDPubNID97kduiJ0cDhuWo8pe3XbEOTTJ1ndM4rESndQzAf3c0aOREzEonKZFwxvvQdro 72zxoXLSgRW8sKVt7QrXGSndzmv4vXROd9Dt0T3aUKFnAI74h9jfxywoOs8LkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YUn4RIhy; dmarc=pass (policy=none) header.from=gmail.com; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689302924; 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=Ya1fsmsCRV1GMkp33gqYolJ7WpVmAGNcwJIP6Nq4kOo=; b=CCvbQg6mfST/KtKxjW9LN8j9LNCRq+Tbc2jc0DUML5kTJLbV+JQ6bWVq80TDix7OSHWaxW cG0ualJJENI9TAgC9AdcKOavDgfjdweDrk8c36NwKrHkrlNzvKEOkOIH4ulmm2XFlVB0a9 HALdrFFkHw7VR0Z/mVNfbZobUuJVwG8fKIKJyrVi7PokOtiRaIWC4uqW4JZLmHyW8Yr39a H9eVRbIuauGsMN7Nop5Er95E3n8H1Gbw8BYXZH0nZxI9v2wDOMVf/zAjQO5KjW+5ioph8C tc0gvXUdAASLEl2Szs5TEzFvQ5GmjoHfY6k34/Ghzd/XbCr/htCtR7uj9JfN6g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qK8qR-0007TF-Nj; Thu, 13 Jul 2023 22:47:47 -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 1qK8qQ-0007SJ-Jq for emacs-orgmode@gnu.org; Thu, 13 Jul 2023 22:47:46 -0400 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qK8qP-0007kB-5f for emacs-orgmode@gnu.org; Thu, 13 Jul 2023 22:47:46 -0400 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3456fda4ed1so6658865ab.0 for ; Thu, 13 Jul 2023 19:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689302864; x=1691894864; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Ya1fsmsCRV1GMkp33gqYolJ7WpVmAGNcwJIP6Nq4kOo=; b=YUn4RIhygux1A23F+1fROzXcFM8wDsUKbESljBIodoVdHmZz68G5kAIruryCEuBfc8 oqIXWotx9FP1/lRHiuSl6PWB692G+2rx/etA4XbK2Ndvd17wcDRcGUX8nVXeZSIVLwnW tcBHzlQFUAJHQp9tdNTWD369c4oRKoVacTkFB1tuA+GncdPM29E3lNEdyNgfkxVkg4BQ AlVaM6x6kVqCPkNmLLDBlFstcTEOTuav+czncI1lSlyPep2V14Ys54ZFO3Ob/pirh2vl ERVpL4r2b9SgeZX5jCWJwia1nK5Eaz9UeMqiDPHYkBLIrKUB8hf6udNH2Kaktp1qeES6 ewoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689302864; x=1691894864; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ya1fsmsCRV1GMkp33gqYolJ7WpVmAGNcwJIP6Nq4kOo=; b=amL+i9KuudKYybVyhJulomzq3yHTaOBdxEYpsUVyRCvEdsZ0Bq4MEc0lGejlXQWopS v1WvxMI+G/5RQmfpoVSAzMJ2IM/CPBYxFB0xbRFFGIXOT7Nbwjx0VybL7Pxv3d4epbZn zoWb5rxotS11Q0b8fvsxx1UPV4eoCSHdO1lz4kGykfmAKXfvcuSNSqOjK/RuqX9S2rQn Pw1aPFUkZH9Uo2YWW5URMiebxnrggp1q9MOQrUYD8b6LQ51fAWZpPTqLTQn64mR0/g9J gaB0xGr9BmvKsPEPbcHND9cmrMwfU+g+5rJVUy+4vNvrFd6CfDF8BzET8NhULSJr1+QU 2Gew== X-Gm-Message-State: ABy/qLZ05SvLspnesD4YMuwOxtkDSsGIJAiEWsiX/VEMEHsdJq8wceD9 jHRoVLnkCgem7Sp2Zr6EJMwK6uDS/oI= X-Google-Smtp-Source: APBJJlEkj9/K2A1oCGpNONE0Y3odN7JwyRYgL7j4zlP9uA0opfCDB7nOz6MIdxLXr7GOkno95zwrAg== X-Received: by 2002:a92:c846:0:b0:345:6ce1:d259 with SMTP id b6-20020a92c846000000b003456ce1d259mr3498985ilq.28.1689302863714; Thu, 13 Jul 2023 19:47:43 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id mz14-20020a17090b378e00b0025c1cfdb93esm191656pjb.13.2023.07.13.19.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 19:47:43 -0700 (PDT) From: Jack Kamm To: Ihor Radchenko Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-python: support header argument `:results file graphics' In-Reply-To: <87ttu95xst.fsf@localhost> References: <877crh8htb.fsf@localhost> <875y71fcic.fsf@localhost> <877crfvrsf.fsf@localhost> <87v8ez0w41.fsf@gmail.com> <87y1ju8vpp.fsf@localhost> <87sfa121q1.fsf@gmail.com> <871qhkxaay.fsf@localhost> <87h6qe1pa2.fsf@gmail.com> <87sf9x8n38.fsf@localhost> <87fs5tk94a.fsf@gmail.com> <87ttu95xst.fsf@localhost> Date: Thu, 13 Jul 2023 19:47:41 -0700 Message-ID: <874jm71a5u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::12e; envelope-from=jackkamm@gmail.com; helo=mail-il1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.65 X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -7.65 X-Migadu-Queue-Id: 11B2143174 X-TUID: 4SZ5v8u6ivpZ Ihor Radchenko writes: > We may instead arrange org-lint and possibly ob-core to throw a > warning when an src block uses confusing setting combinations. > Without changing the underlying behaviour. > Basically, discourage using confusing staff. > ... > We should update the docs to avoid such examples. > ... > We should generally rewrite that part of the manual, I think. > My previous message was a tentative outline on how the things should be > presented in the manual. > ... >> IMO the more technically correct approach is in the ob-python patch >> that I proposed a couple years ago [2], and plan to revisit soon. In >> that patch, ob-python ":results graphics output" will plot from >> pyplot.gcf(), while ":results graphics value" will expect a >> matplotlib.Figure object to be returned for plotting. > > Sounds reasonable. Let me know if you need any help along the way. Thank you. And likewise, I agree with your suggestions to update org-lint, org-manual, and Worg, and will try to help where I can. (I might be a little slow to start due to other deadlines the next couple weeks).