From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GAgTO2nPY1+/LQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 21:04:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iPcHN2nPY18rWwAA1q6Kng (envelope-from ) for ; Thu, 17 Sep 2020 21:04:41 +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 45E3C940662 for ; Thu, 17 Sep 2020 21:04:41 +0000 (UTC) Received: from localhost ([::1]:60006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJ153-0004s6-Re for larch@yhetil.org; Thu, 17 Sep 2020 17:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJ129-00049V-7U for emacs-orgmode@gnu.org; Thu, 17 Sep 2020 17:01:37 -0400 Received: from shell.miskatonic.org ([54.39.142.95]:50452) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJ126-0005WG-92 for emacs-orgmode@gnu.org; Thu, 17 Sep 2020 17:01:36 -0400 Received: by shell.miskatonic.org (Postfix, from userid 1000) id 227624C00EFD; Thu, 17 Sep 2020 17:01:26 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell.miskatonic.org (Postfix) with ESMTP id 1D3CA4C00CFA; Thu, 17 Sep 2020 17:01:26 -0400 (EDT) Date: Thu, 17 Sep 2020 17:01:26 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell.miskatonic.org To: John Kitchin Subject: Re: How to refer to remote table, in another file, as a source block variable? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Received-SPF: neutral client-ip=54.39.142.95; envelope-from=wtd@pobox.com; helo=shell.miskatonic.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 17:01:26 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 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: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=pobox.com (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-Spam-Score: 0.09 X-TUID: 3FT3G1WDylLI 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/