From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: could a :var header argument refer to a data table in another file?
Date: Thu, 29 Apr 2021 09:17:21 -0400 [thread overview]
Message-ID: <CAJ51ETqu8k96ZJNKMAzbkLG+e_Vf4DezWyNDPoFaCo1rR2Fucw@mail.gmail.com> (raw)
In-Reply-To: <87czud8elm.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]
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 <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. 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
>
>
[-- Attachment #2: Type: text/html, Size: 2040 bytes --]
next prev parent reply other threads:[~2021-04-29 13:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 12:22 could a :var header argument refer to a data table in another file? Eric S Fraga
2021-04-29 13:17 ` John Kitchin [this message]
2021-04-29 13:42 ` Eric S Fraga
2021-04-29 14:51 ` John Kitchin
2021-04-29 15:36 ` Eric S Fraga
2021-05-03 12:43 ` [patch] documentation update (was Re: could a :var header argument refer to a data table in another file?) Eric S Fraga
2021-05-03 13:00 ` Bastien
2021-05-03 13:35 ` Eric S Fraga
2021-05-03 13:43 ` Bastien
2021-05-03 13:47 ` Eric S Fraga
2021-04-29 14:02 ` could a :var header argument refer to a data table in another file? Eric S Fraga
2021-05-01 5:58 ` Michael Welle
2021-05-01 8:42 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETqu8k96ZJNKMAzbkLG+e_Vf4DezWyNDPoFaCo1rR2Fucw@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).