Ask Your Question

Revision history [back]

You can do:

sage: print sage.misc.displayhook.format_obj(MM)
[
[1 0 0]  [1 0 0]  [1 0 0]
[0 1 0]  [0 1 0]  [0 1 0]
[0 0 1], [0 0 1], [0 0 1]
]

You can also have a look at this question.