emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: How to refer to remote table, in another file, as a source block variable?
Date: Thu, 17 Sep 2020 17:01:26 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.2009171700260.26137@shell.miskatonic.org> (raw)
In-Reply-To: <CAJ51ETpKzfeT2BEQcBnYCdWPUgO4XPR2i11d5h0WvvyPhWWWYw@mail.gmail.com>

Aha!  Thank you!  I'll try to do a patch for the docs so this is clearer there.

Bill

On 14 September 2020, John Kitchin wrote:

> I think you are looking for (Assuming your table is in an org file called
> test.org):
>
> #+BEGIN_SRC ipython :var data=test.org:test_table
> for row in data:
>    print(row)
> #+END_SRC
>
> #+RESULTS:
> :results:
> # Out [2]:
> # output
> ['two', 'yes']
> ['three', 'yes']
> ['four', 'no']

--
William Denton :: Toronto, Canada   ---   Listening to Art: https://listeningtoart.org/
https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
Caveat lector.                      ---   STAPLR: https://staplr.org/


  reply	other threads:[~2020-09-17 21:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 19:27 How to refer to remote table, in another file, as a source block variable? William Denton
2020-09-14 21:57 ` William Denton
2020-09-14 23:11   ` John Kitchin
2020-09-17 21:01     ` William Denton [this message]
2020-09-23  7:26       ` Bastien

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=alpine.DEB.2.02.2009171700260.26137@shell.miskatonic.org \
    --to=wtd@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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).