From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: [babel] passing tables to python source blocks Date: Fri, 26 Mar 2010 17:41:41 -0400 Message-ID: <87wrwyhiay.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: maurizio.vitale@polymath-solutions.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvHFY-0007ZF-Om for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:39:28 -0400 Received: from [140.186.70.92] (port=47446 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvHFX-0007Yx-FF for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:39:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvHFV-0003Mk-WC for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:39:27 -0400 Received: from lo.gmane.org ([80.91.229.12]:39977) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvHFV-0003MU-N0 for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:39:25 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NvHFT-0002A4-Jl for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 22:39:23 +0100 Received: from pool-96-236-162-100.pitbpa.east.verizon.net ([96.236.162.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Mar 2010 22:39:23 +0100 Received: from maurizio.vitale by pool-96-236-162-100.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Mar 2010 22:39:23 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I get the following error when passing a table containing a line separator (like mounts below). It looks like the table is first exported to ASCII (and the horizontal line mapped to hline), but hline is not known in python-land. Would it be possible to discard it instead? Thanks, Maurizio #+results: partition-ids-sacred | sda1 | 44d8b686-253d-4d84-bc1d-6241256e7a48 | | sda5 | 4d061415-21e4-4419-b8a5-3fff37090e5f | | sdd3 | 6404fb2a-c30f-475c-b386-89c98d5cb3c6 | | sdd5 | 9b072633-a66d-4870-8617-d955c535782f | | md0 | a24470a7-1d7e-4938-9f09-ab11cdb78bc3 | | sdd1 | dfcb40e1-9e2f-485e-8897-94ee0458c5e7 | #+tblname: mounts | Device | Mount | type | options | dump | pass | |--------+---------------------+------+----------+------+------| | sdd1 | /library | ext3 | defaults | 0 | 0 | | sdd3 | /backup | ext2 | defaults | 0 | 0 | | md0 | /home/mav/workspace | ext3 | defaults | 0 | 0 | #+source mtab #+begin_src python :var mounts=mounts :var ids=partition-ids-sacred :results output print mounts #+end_src #+results: : Traceback (most recent call last): : File "", line 1, in : NameError: name 'hline' is not defined