id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
13131 Make a top-level table/Table function kcrisman was "As the summary says.
See [https://groups.google.com/forum/?fromgroups#!topic/sage-devel/5Ex0erSNyKg this sage-devel thread] for more suggestions, including that we should have a `Table` class that `table` calls, which uses something like `html.table` in the notebook, but also has a `_latex_` method, makes ascii art in the command line, etc.
Just a few examples from the doctests in the patch:
{{{
sage: table([['a', 'b', 'c'], [100,2,3], [4,5,60]])
a b c
100 2 3
4 5 60
sage: table([['a', 'b', 'c'], [100,2,3], [4,5,60]], frame=True)
+-----+---+----+
| a | b | c |
+-----+---+----+
| 100 | 2 | 3 |
+-----+---+----+
| 4 | 5 | 60 |
+-----+---+----+
sage: latex(table([['a', 'b', 'c'], [100,2,3], [4,5,60]], frame=True))
\begin{tabular}{|l|l|l|} \hline
a & b & c \\ \hline
$100$ & $2$ & $3$ \\ \hline
$4$ & $5$ & $60$ \\ \hline
\end{tabular}
}}}
You can also specify alignments of 'left', 'center', or 'right'.
Apply [attachment:trac_13131-tables-with-columns.patch], [attachment:trac_13131_review-sl.patch]." enhancement closed major sage-5.10 user interface fixed jason jhpalmieri abmasse novoselt andrew.mathas sage-5.10.beta0 John Palmieri Jason Grout, Karl-Dieter Crisman, Sébastien Labbé N/A