From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EF3AHRZsqWQWVAEASxT56A (envelope-from ) for ; Sat, 08 Jul 2023 16:00:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6PzeHRZsqWTq5wAA9RJhRA (envelope-from ) for ; Sat, 08 Jul 2023 16:00:54 +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 5563E38301 for ; Sat, 8 Jul 2023 16:00:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bftVeyN6; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688824849; 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=XIXrM7uCymN/lGtdnJax8gurdLhnvTLqogsft7neF4U=; b=SFrCyTGAx4VFuNVOl8zpZ0C2RvJaFaBfrr1qlrDcf3DB9G2newWtMDZRbJUlye/ukMyomn ecDmtIMXyYld18y3Z1PyW8lVgtssibWjGVEd89HLnt7GnUli2jFIHcs104d38L9T5klreC Qbgocjx5M4UOzVDOnBU46uXWTGPUkO1Ai080nji+d76HMlgqGP2rPOVTOV/WAB2I8nyo0P 7prDMuKNF9gE6Ksx9MPi09wUn4Ks/4OfFZTpdKf8VnrjxKJA6f5wz93hYFzLAHHiJxgQ8Q pWrUyRdma7gUzNhO6URm8WC29A0+nZkwfFRUh6n3luX23NECrDuZklSR5u2PeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688824849; a=rsa-sha256; cv=none; b=D8FUQ5QSiWUgpGxPFZ9NMpJ69xIedfYnsaVNTboRwRMxFcaHEMKFkww6M7bdM8Xwr145an 5SjGLdrBEWE8R6l83nvPKulvpBA7SJzkVmJk7uqVNJOLJ538AKp7V563Day/PFg1RYEzXc TPCwyLw4JsD4BMwfzWm+q+RtSZJ1bDKBQJ1kvZ0BMGZiAALDwZxYSmQdWduNmmIEQ5CUjv D47NlvPiBRH16Y8kCxORvZzkFLyE37HVykNPN0WQPXhP1d0pxAHoX8nkUUiwel5rj6qSTW XVnAyoFssVUeXRSLsdWagauL0qvg8Dg7HbSvUinVB6AuSv3OfavfK0vuUbpVPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bftVeyN6; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qI8Tb-0004mg-Iv; Sat, 08 Jul 2023 09:59:55 -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 1qI8TZ-0004mR-Le for emacs-orgmode@gnu.org; Sat, 08 Jul 2023 09:59:53 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qI8TY-0001VD-5D for emacs-orgmode@gnu.org; Sat, 08 Jul 2023 09:59:53 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b9c5e07c1bso11137605ad.2 for ; Sat, 08 Jul 2023 06:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688824791; x=1691416791; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XIXrM7uCymN/lGtdnJax8gurdLhnvTLqogsft7neF4U=; b=bftVeyN6X7kjYZNg4hkSIp0f8oYY/M7jN8N3W6KAWApnTsIYKHodJU2lsXr4lZBZWw AdNOkZiIVf30dbkcjN1UlFwSz9F/LB7n30+bpW6S8g/SIRo3qVbxAuxdytlPSveQ2HZC ZUEdkOAD7Aquupp+s/Rl0oqXtxi6z+l8zVCShsFQTBmBlvddk7qG5awW1Di+A2fOb/fz Q6DiFu/6e/ovzBoyZk636Kr6/dpy13/2r3MzyqXWXJf7sv3q3ioi/DmxNlADvYkc+ySd E9Rc4UdnWaJOFyyGuqdtoJQRuIxmwRU2/HJOTDcODL78eLXKajkP++IG69I6HdQQUtBF 02hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688824791; x=1691416791; 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=XIXrM7uCymN/lGtdnJax8gurdLhnvTLqogsft7neF4U=; b=J3uCFgN/POURjgrN2bT8ydAdwexQHWa7FXoizBgsF92ftfV/kcnGyTFHQ/p3Hmmhdt kPnYXL7YFC1+4ye1TlePIAaZpdYkq/YxrGmohQmPSNtGmo0IeOOrcy1uf4ak8jR4IetK zD18T867BObXVBF6Cn5C+5TA05GtJqIhzLwzOezcz+eBH9DyanqPhRgZCDfs3uxkYRVW VRlWSWhOKWLBCd2vNm/rSN1RgtrGKWqK8q1rg5Db+TmBGTyHEddE0mRjKRiZpMaNKIeq xMV5bWSZ7kdUtpnGwTqaMxqqstVaf+XrBGs+ZoGxLIoDICKUhHFGqyPZXWXRvjnv/Z0s zzHw== X-Gm-Message-State: ABy/qLY11ZxlcY0fxQinMfWWOkuyK9WuXS56rNSLLNaF+DYDxogANfxZ fAlqXQC6mI25oOyT4gmzNJJ+LZb3E7k= X-Google-Smtp-Source: APBJJlE37iKPzwvNDip4TIXNXviHnNVMYZapl88bDr+3HdWP6RWLFpZjuoqMQJPhr9Q5mOnwyjxiEw== X-Received: by 2002:a17:903:447:b0:1b8:a31b:ac85 with SMTP id iw7-20020a170903044700b001b8a31bac85mr7223237plb.41.1688824790669; Sat, 08 Jul 2023 06:59:50 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id q3-20020a170902dac300b001b8aa51821csm4955705plx.138.2023.07.08.06.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 06:59:50 -0700 (PDT) From: Jack Kamm To: Liu Hui Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-python: support header argument `:results file graphics' In-Reply-To: References: <87y1jv0wlx.fsf@gmail.com> <87pm551yyf.fsf@gmail.com> Date: Sat, 08 Jul 2023 06:59:49 -0700 Message-ID: <87edli1p2i.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x636.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.86 X-Spam-Score: -7.86 X-Migadu-Queue-Id: 5563E38301 X-Migadu-Scanner: mx2.migadu.com X-TUID: 1WFRsScDOiA+ Liu Hui writes: > I think your proposal about ":results graphics" is more flexible and > complies the documentation. Since the patch has no real problem and > the feature is useful indeed, I hope it can be merged instead of mine > after the problem of documentation is resolved. Thanks for your gracious words. I will aim to revisit and finish this work in a month or so -- I'm swamped the next couple weeks, and anyways we first need to sort out the issues around documentation, back-compatibility, and general semantics of ":results graphics". > As for other features in the patch, maybe it is better to convert > dict/dataframe/array to table/list only when the result type is > explicitly set to table or list? Thanks, that is an interesting idea. Especially for dict, which can be interpreted in many ways, it is a good idea to make use of the table/list/etc type specifications.