From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wJy1KSOzimCRVgEAgWs5BA (envelope-from ) for ; Thu, 29 Apr 2021 15:22:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id Cj9SJSOzimB4PgAAbx9fmQ (envelope-from ) for ; Thu, 29 Apr 2021 13:22:43 +0000 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 B66AA20860 for ; Thu, 29 Apr 2021 15:22:42 +0200 (CEST) Received: from localhost ([::1]:60558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc6cq-0006ee-Vj for larch@yhetil.org; Thu, 29 Apr 2021 09:22:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc6Xx-0004YV-AP for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 09:17:37 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:44875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lc6Xu-0005gD-QW for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 09:17:36 -0400 Received: by mail-wm1-x332.google.com with SMTP id 82-20020a1c01550000b0290142562ff7c9so6689321wmb.3 for ; Thu, 29 Apr 2021 06:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Qy45B0cVrHUOND0KvSwZdygDQ2AYSzMUNalUr+lo3MY=; b=QGNEOH3JijvR1BnB01sTX8qKiZ3Yh2KtkWoXiaH7gL5y5gKn1m5eQeKhj3GPyarW97 BPp8ES8en0NBrsXDe1eU719YR9BtN/Xbq+53+RVhPu25oAb+g1WDE1y+530tZ0lCoWPG yjQYos1Tu5XD69nwf4Vuevdw1VGO3OunqsN9q2VGMwTJAc8+SHk5FyRR7U71AYmGtUlz VMhriam79ubFfl9uKsQBfxUK2owJLFLa3/7641VsP6W5c+hiUDlq67MtgD9sxUWFIplY FghBrrHLsA5vC2BMquv7caBqlrWLcmj8WEw+XTQexLnbrLBXpT+WrI7qXQk7PWuScY8D Ewdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Qy45B0cVrHUOND0KvSwZdygDQ2AYSzMUNalUr+lo3MY=; b=cYxwBZs2kcf2BJo9pc8+Baj34cNeEouDgrNVpSCJ4oeXHYdKspllAR35IUU5sV0Ezq 3wXb4n6E1tpgkeebAy9Za0JuL/4EgIIp3ixpY0ar6uGCKiR0fllIEY7k9C+R+N9XBrJY lCNXvWaOk/KMxifRzqWz9yTqioacbSStZI/VEG94eHoqPlgOdJKRmHhz5v3yj9z/oHJC JvnZ7KCQBlqIjIs8bcWYBIIwRYmisQoSSquCt5tORmdeHE11zoOoEwCM2uVhkSQZ9Vn9 Hb4LiZFyJtg3StRdMhPAsWE524BGGaQ6K7DfxgdqHvAAFKTSzWD2h7Y6xGCuo44y20Fa EhOQ== X-Gm-Message-State: AOAM533glbfUlTdG29yLNX6c4O+4wjjrh+6qigTnQpFDjcnC/vBL6szt gAjnxtm3Y9s4bQRWmFBfF5I1jIor/Q3Wk9Jtauc3892lfO4twA== X-Google-Smtp-Source: ABdhPJyEQqKg5yro41lmacEAMWljwoXGJHcWG0HvSxVSil++YVdDkqwkEZgWuu2jqrRtXkvH1yYtd1BMzWp24wLWkGw= X-Received: by 2002:a1c:5fd6:: with SMTP id t205mr2529198wmb.54.1619702252309; Thu, 29 Apr 2021 06:17:32 -0700 (PDT) MIME-Version: 1.0 References: <87czud8elm.fsf@ucl.ac.uk> In-Reply-To: <87czud8elm.fsf@ucl.ac.uk> From: John Kitchin Date: Thu, 29 Apr 2021 09:17:21 -0400 Message-ID: Subject: Re: could a :var header argument refer to a data table in another file? To: Emacs Org mode mailing list Content-Type: multipart/alternative; boundary="00000000000064101605c11c51f7" Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619702562; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Qy45B0cVrHUOND0KvSwZdygDQ2AYSzMUNalUr+lo3MY=; b=j73LbV14tS8dPPgRHoszrMGT/24aAVxC6RZ9A/1jZeMUj/4Zvf/Si7nAx3+3pFiAt3wmtq i/bKcQPV5JwwQ6wF9rjbP9uVkHjLTlPL6r77ltTwIMwnyxlkFiOnTSGevT0N8mkJRkqM0j M8KY/5oI4W/Lhd80lImLsEsuvZ91y9xd4mert8z+KvA/mWcWV2MNKuSOEPqo8I2ICCmmBo LlbYduH4L7zpLa5qZu3i8PEWq6D1vk76Hhv7D0juv6m1+n3ZinULQiLN4rdWmXYGpAmN8m CvPhgXq74rO32FiwxdFaWr3iPj/vwyi50wnn1OH8Rn05GrmPbmArsnS+nzNOBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619702562; a=rsa-sha256; cv=none; b=WyIK/ggbeyCjmFoqzvhfJMnuvLzaSC8dAJGv5+e40Vq8i/Ffl5wm6q4S3Adayl52aKHtfY erMd34ipXKzybkigyj5F3dxp2ceulfdWYD2roQTaeUfE59L2r588VJZCTNmp4PYT+vVtwb NQu/cnr7jUjP2SkC4T6E2Na3T9dv4Y+KtXywccpyhxT9wuoW4R5W0LPvXKjo/uBy58IZ4J uLPXmRcLCpHkUUG96uFhNHKYuf69KIoVr8WnJcq6vhmVJEp66s36QXDH5DLfpYO5BWuySF GA6QYUGHoj7+DkQ+e/yc1xt/p6qI0StT1IaVEXyk4LrkUb4WTXpSdmcvZW0QQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=QGNEOH3J; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=QGNEOH3J; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B66AA20860 X-Spam-Score: -1.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: xPKQWvnw/o/N --00000000000064101605c11c51f7 Content-Type: text/plain; charset="UTF-8" This syntax works for me. #+BEGIN_SRC python :var data=data.org:remote-table print(data) #+END_SRC John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Apr 29, 2021 at 8:36 AM Eric S Fraga wrote: > Hello all, > > TL;DR: I have the need to reference a table that is in another file to > pass as data to a src block in the current file. Is this possible? > Hints welcome! > > Longer version: I am running a series of numerical experiments, each of > which generates output files (using org syntax!). I want to process the > data in those files for inclusion in a paper. Now, I could write a > shell script which extracts all these data and collates them etc. but it > would be ideal if I could simply refer to a table in another file > directly. The tables are all named although a given table in each > output file will have the same name (I hope that makes sense). > > One thing that comes to mind is some elisp in the argument to the :var > header argument. Is this possible? I've not tried... > > Thank you, > eric > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.4.5-381-g17ef1b.dirty > > --00000000000064101605c11c51f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This syntax works for me.

#+= BEGIN_SRC python :var data=3Ddata.org:remote-table
print(data)
#+END_= SRC



John

-----------------------------= ------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Depa= rtment of Chemical Engineering
Carnegie Mellon University
Pittsburgh,= PA 15213
412-268-7803


On Thu, Apr 29, 20= 21 at 8:36 AM Eric S Fraga <e.fraga= @ucl.ac.uk> wrote:
Hello all,

TL;DR: I have the need to reference a table that is in another file to
pass as data to a src block in the current file.=C2=A0 Is this possible? Hints welcome!

Longer version: I am running a series of numerical experiments, each of
which generates output files (using org syntax!).=C2=A0 I want to process t= he
data in those files for inclusion in a paper.=C2=A0 Now, I could write a shell script which extracts all these data and collates them etc. but it would be ideal if I could simply refer to a table in another file
directly.=C2=A0 The tables are all named although a given table in each
output file will have the same name (I hope that makes sense).

One thing that comes to mind is some elisp in the argument to the :var
header argument.=C2=A0 Is this possible?=C2=A0 I've not tried...

Thank you,
eric

--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.5-381-g17ef1b.dirty

--00000000000064101605c11c51f7--