Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why doesn't show() render latex properly?

The following code:

import numpy as np

P = np.matrix('0 0 20 20; 0 20 20 0')

show(P)

Gives me the output

[[𝟶𝟶𝟸𝟶𝟸𝟶]
 [𝟶𝟸𝟶𝟸𝟶𝟶]]

In old sage, I guess around 6.0 or something, the show() command would render a proper latex matrix. I.e like you would see in a mathematics textbook.

Is there any way I can get this functionality back?

Thanks.

Why doesn't show() render latex properly?

The following code:

import numpy as np

P = np.matrix('0 0 20 20; 0 20 20 0')

show(P)

Gives me the output

[[𝟶𝟶𝟸𝟶𝟸𝟶]
 [𝟶𝟸𝟶𝟸𝟶𝟶]]

In old sage, I guess around 6.0 or something, the show() command would render a proper latex matrix. I.e like you would see in a mathematics textbook.

Is there any way I can get this functionality back?

Thanks.

Edit: I'm using Sage 9.0 v 0.6.0 on Windows.