From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Hilboll Subject: How to access tables headers from within code block? Date: Tue, 18 Nov 2014 11:29:54 +0100 Message-ID: <546B1FA2.9080307@hilboll.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqgdF-0003Kp-QR for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 06:07:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xqgd4-0006qL-Nf for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 06:07:37 -0500 Received: from srv2.andreas-h.info ([130.185.108.51]:36083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqgd4-0006q9-He for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 06:07:26 -0500 Received: from localhost (localhost [127.0.0.1]) by srv2.andreas-h.info (Postfix) with ESMTP id 54C7E1C0579 for ; Tue, 18 Nov 2014 11:30:54 +0100 (CET) Received: from srv2.andreas-h.info ([127.0.0.1]) by localhost (srv2.andreas-h.info [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id htVNixrm-Q24 for ; Tue, 18 Nov 2014 11:30:36 +0100 (CET) Received: from srv1.andreas-h.info (unknown [195.138.240.26]) by srv2.andreas-h.info (Postfix) with ESMTP id EFEA71C0197 for ; Tue, 18 Nov 2014 11:30:35 +0100 (CET) Received: from [192.168.18.57] (login.iup.uni-bremen.de [134.102.186.40]) by srv1.andreas-h.info (Postfix) with ESMTPSA id 8D922A601DA for ; Tue, 18 Nov 2014 11:29:55 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I have a table like this #+TBLNAME: t_tracers | Trace gas | SCIATRAN alias | |-----------+----------------| | O3 | O3 | | NO2 | NO2 | | HCHO | HCHO | | CHOCHO | NO3 | | HONO | OCLO | | BRO | BRO | | H2O | H2O | | O4 | O4 | and want to access the data from within a Python code block: #+BEGIN_SRC python :var tracers_raw=t_tracers return (tracers_raw) #+END_SRC My problem is that the table headers are apparently not passed to Python, as my results look like this: #+RESULTS: | O3 | O3 | | NO2 | NO2 | | HCHO | HCHO | | CHOCHO | NO3 | | HONO | OCLO | | BRO | BRO | | H2O | H2O | | O4 | O4 | How can I access the table headers also from within the code block? Thanks for you help, Andreas.