From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: getting an hline in a python generated table Date: Wed, 01 Apr 2015 16:07:06 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOux-0007pS-Di for emacs-orgmode@gnu.org; Wed, 01 Apr 2015 16:07:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdOuu-00016r-21 for emacs-orgmode@gnu.org; Wed, 01 Apr 2015 16:07:15 -0400 Received: from smtp.andrew.cmu.edu ([128.2.157.39]:35986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOut-00016H-Sl for emacs-orgmode@gnu.org; Wed, 01 Apr 2015 16:07:11 -0400 Received: from Johns-MacBook-Air.local (KITCHIN-TIMEMACHINE.CHEME.CMU.EDU [128.2.54.215]) (user=jkitchin mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.8/8.14.8) with ESMTP id t31K77Jh010223 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Wed, 1 Apr 2015 16:07:08 -0400 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: Orgmode Mailing List Hi everyone, In emacs-lisp, I can get a table as output that has a horizontal line in it like this: (append '((name scopus-id h-index n-docs n-citations)) '(hline) (some expression that generates a list)) The first row is header names, then a horizontal line, followed by a row for each thing of interest. This seems to work because the result is an emacs-lisp "array". I cannot figure out if this is possible in a Python block though. So far my experiments have failed because I don't know how to make an hline symbol in a Python array. Any kind of string just shows as a row. Any thoughts on if this is possible? thanks, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu