From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mCNYLQZY4mSI1AAASxT56A (envelope-from ) for ; Sun, 20 Aug 2023 20:14:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4DtSLQZY4mRQRgEAauVa8A (envelope-from ) for ; Sun, 20 Aug 2023 20:14:30 +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 4B69254C31 for ; Sun, 20 Aug 2023 20:14:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=KDb0r588; 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=1692555270; 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=qAJm7/GQVc0c0RS30ENwL/QDKbsRqzZtlCSrQuEzJbU=; b=oqIQ+9BMzGAmXJOeXFlFp/ncfBSmQ4mPPoRgaYuKUl0UJzf/XaYdrQrT/OUmJdrQRLFqlO 8+UhG0AhtTt3vzw/HbyTMhbVuRRWKHH+pbJ0A6TxftubBu5cYNZpf6MjPXXNcN2Pkcdf/o 0DmFXzWvaouN2DO5wEafUza6PDIAdiMQwzD6BUxB28dc2Z2+iZgvDhZeIdoR7SA22XKmJO l+xUaOFRD67hIfA2TDd36qspPwhL/dk/a0lDRQemBBTP8PKrjqb3i6TueDJyHgbQmHmlw8 aRl5tarid2ydtFe7MAqx9NgOUJTowhzjR5AQai2c+DxnQpXUjIuZvSvAjdPX/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692555270; a=rsa-sha256; cv=none; b=JgOb8VSQjIH8a1SAgQ+HRvFC2gxSt1C/jZqJ1F/NtwpPT/VrwMHo2kXj+Dh1kSv7IWv7jE P1oIBbxIx+OC/Cher18PGEqssZ/ak1mponmdWMTe7oABIwxJ7KxHPF/lYIRROHm7mu/FUx lqlS4wgVti7JwwsO9x1J2gYUweiiUmFdKes8XOXAKRuXBvgW+GS4F34opeKTBU1P3PH2qs CmWF3KmSYPZ8fRDkCUpW6jcbxmpHy3oZTVc8F6Xmr+zccKM8ZGcCaCS7lQPy/pLwEvfOVi PZ4WvRnCzelx4XiJhcaxAgAfqVs9+fcybWC6BTPKvUg09RbnFZ3s76FIGnrrCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=KDb0r588; 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 1qXmvp-0005ZF-JR; Sun, 20 Aug 2023 14:13:45 -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 1qXmvo-0005Z3-0I; Sun, 20 Aug 2023 14:13:44 -0400 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXmvl-0003pg-U5; Sun, 20 Aug 2023 14:13:43 -0400 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3a78a29bca3so1917692b6e.0; Sun, 20 Aug 2023 11:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692555220; x=1693160020; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=qAJm7/GQVc0c0RS30ENwL/QDKbsRqzZtlCSrQuEzJbU=; b=KDb0r5888kucrbe7800sHPzUYChVC0BDUoqFl3z7Mhm7rPmwrHqiQNq+HaZXMNHpB2 CCHGNrvVZ00bxV73poWqQ2cGW0UvP6HmCzzDQ2j8UhfGBBVbOwtByWw1xUCDGRhN9E5R PUHft80+Gx+5xun3WO8ysCAy3pUZQe4bltQU9jB5iM72xpf6hPKc2oNpJDydPZt/0JR7 VvtS32fVNjMxg0/xc6Dq/akyQU3tU++SXst73vcOfPesNx0Jn4ojYQTIVRrK+n8AkXb+ KV+ljlzEjAiFSH1SJ1/btuP3tD0A+W96ERtu0/g9zcplcJYfCCjSsRPVF2+9JbooN6Xu LcMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692555220; x=1693160020; 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=qAJm7/GQVc0c0RS30ENwL/QDKbsRqzZtlCSrQuEzJbU=; b=MB+8IKQziVQ6Dp/NRFrU9XI4/DVPy4QRpZGaIK2q9ebWX+dpvWqsAZzLswmMPf00O6 UWUnnzfopZDW+FA8MgqxF8a6KZ98+27x6fwEh+fWSdcNFgLp0bSfOoc9KYIKfffEEAmr XAxtU/yCJbw4Kee09YLnFTM6Kas8F+7ZjnxA5NjT8LCeM7MLxnvaH+vZSQv20A/Pl3oe zAzjRIT1QwwxNUjcuD/SbXWIpW/AhSD/MZ/h+tuehjN1/wvDzzlUBAUBvBVr0Wskvm/r NUTB6dXzadYebfX5CwdfGD5HjP/75yt8wOxjf2NNH13zPB7747orybI8n2U0I0imwRId wp/Q== X-Gm-Message-State: AOJu0Yxq30QIO6nS+vlx1azAwlkYumnoH76XvVrGxSuQ3Zc2xC7NXyGn YYSiwZ0PBbM+eEq0eLKb49acHHhS0lc= X-Google-Smtp-Source: AGHT+IGW8pmToTUH3wIEhfhhhzHbQaEYp9dbQe5gK8BpWBaOUlcHvqmnlXKJEc0tKv7VVVGN2Ii27g== X-Received: by 2002:a05:6808:14c9:b0:3a4:39e5:5c69 with SMTP id f9-20020a05680814c900b003a439e55c69mr7466656oiw.53.1692555220275; Sun, 20 Aug 2023 11:13:40 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id e23-20020a633717000000b005652a4bc5f5sm4971352pga.90.2023.08.20.11.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 11:13:39 -0700 (PDT) From: Jack Kamm To: Ihor Radchenko Cc: gerard.vermeulen@posteo.net, emacs-orgmode@gnu.org, Liu Hui , emacs-orgmode-bounces+gerard.vermeulen=posteo.net@gnu.org Subject: Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots In-Reply-To: <87350fo1cc.fsf@localhost> References: <87a5ur6f7w.fsf@gmail.com> <871qg3pc2o.fsf@localhost> <87350i9uwv.fsf@gmail.com> <9948eae293cae8766808778d6390eb64@posteo.net> <878ra8apxw.fsf@gmail.com> <87350fo1cc.fsf@localhost> Date: Sun, 20 Aug 2023 11:13:39 -0700 Message-ID: <87wmxpa8fg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=jackkamm@gmail.com; helo=mail-oi1-x229.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 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: -6.83 X-Spam-Score: -6.83 X-Migadu-Queue-Id: 4B69254C31 X-Migadu-Scanner: mx1.migadu.com X-TUID: lL+d73sey0Dd Ihor Radchenko writes: > We might add the code into a separate proper python file. Then, we can > use the contents of that file to retrieve the variable value. > > We already do the same thing for CSL style files and odt schema/style. Thanks, I think this is a good idea, and will make the python code easier to maintain. And thanks also for the pointer to oc-csl and ox-odt -- I think I should be able to implement this by following their example. It seems like there will be an extra logistical step, to make sure the extra python file is added to emacs as well. I'm not familiar with the details of how we sync Org into Emacs, but will start to look into it. In the meantime, I'm thinking to squash and apply my patch as is. Then afterwards, I can start working on a followup patch to move some Python code into a separate file (and coordinate with emacs-devel if necessary).