Ask Your Question

Revision history [back]

Just use table(blah) instead of html.table(blah).

In the Sage REPL the table will be rendered as text:

sage: blah = [('A', 'B', 'C'), (0, 1, 2), (3, 4, 5), (6, 7, 8)]
sage: table(blah)
  A   B   C
  0   1   2
  3   4   5
  6   7   8

In a Juypter notebook Sage worksheet the table will be rendered as html.

Here is a screenshot from this sage-devel post by Volker Braun.

HTML table in Jupyter notebook Sage worksheet