I know that I\'ve seen some example somewhere before but for the life of me I cannot find it when googling around.
I have some rows of data:
data = [[1,2
If you don't mind using a bit of html, something like this should work.
from IPython.display import HTML, display
def display_table(data):
html = ""
for row in data:
html += ""
for field in row:
html += "%s
"%(field)
html += " "
html += "
"
display(HTML(html))
And then use it like this
data = [[1,2,3],[4,5,6],[7,8,9]]
display_table(data)