emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: emacs-orgmode@gnu.org
Subject: [babel] passing tables to python source blocks
Date: Fri, 26 Mar 2010 17:41:41 -0400	[thread overview]
Message-ID: <87wrwyhiay.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)


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 "<stdin>", line 1, in <module>
: NameError: name 'hline' is not defined

             reply	other threads:[~2010-03-26 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 21:41 Maurizio Vitale [this message]
2010-03-27  0:14 ` [babel] passing tables to python source blocks Dan Davison

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=87wrwyhiay.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --cc=emacs-orgmode@gnu.org \
    --cc=maurizio.vitale@polymath-solutions.com \
    /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).