#13131: Make a top-level table/Table function
----------------------------------+-----------------------------------------
Reporter: kcrisman | Owner: was
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.7
Component: user interface | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Jason Grout, Karl-Dieter
Crisman
Authors: John Palmieri | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by kcrisman):
> * Feature request; take a list of lists and just fill in the rest! I
had to make my own code for this in some sense, filling in empty slots, if
I recall correctly. But presumably this is like the list in comment:2 and
for a future ticket.
This already works. I think I was wanting to have this work better, so
that I didn't have to use `map(None,...)` and then replace with `''`.
{{{
@interact
def _(n=7):
L = map(None,[p for p in prime_range(n+1) if p%4==1],[p for p in
prime_range(n+1) if p%4==3])
L = [['',l[1]] if l[0] is None else l for l in L]
T = [['$p\equiv 1\\text{ mod}(4)$','$p\equiv 3\\text{ mod}(4)$']]
html.table(T+L,header=True)
}}}
But probably that's irrelevant.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13131#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.