emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: emacs-orgmode@gnu.org
Subject: Org-babel `:hlines yes` no longer working for python
Date: Sat, 26 Jun 2010 09:20:04 -0500	[thread overview]
Message-ID: <87k4pl27vv.fsf@dustycloud.org> (raw)

Hello all,

I was going through the tutorial and testing the :hlines yes feature as
described in the info manual.  Unfortunately, the example given no
longer seems to work for python:

#+tblname: many-cols
| a | b | c |
|---+---+---|
| d | e | f |
|---+---+---|
| g | h | i |

#+source: echo-table
#+begin_src python :var tab=many-cols :hlines yes
  return tab
#+end_src

#+results: echo-table
| a | b | c |
| d | e | f |
| g | h | i |

In the buffer *Org-Babel Error Output* I see:

Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
  File "<stdin>", line 3, in main
NameError: global name 'hline' is not defined

In emacs-lisp this still seems to work though.  But I also see that in
emacs lisp hlines are represented by the hline symbol.  I'm guessing
that the python equivalent was trying to do the same thing, but no hline
variable exists in python?

Thanks!
 - cwebb

             reply	other threads:[~2010-06-26 14:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26 14:20 Christopher Allan Webber [this message]
2010-06-26 17:08 ` Org-babel `:hlines yes` no longer working for python Eric Schulte
2010-06-26 20:12   ` Christopher Allan Webber
2010-06-26 20:45     ` Eric Schulte
2010-06-27  1:59       ` Christopher Allan Webber
2010-06-27 23:43         ` Eric Schulte
2010-06-28 17:53           ` Christopher Allan Webber
2010-06-28 18:17             ` Eric Schulte
2010-06-28 18:58               ` Christopher Allan Webber

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=87k4pl27vv.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=emacs-orgmode@gnu.org \
    /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).