Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 5 years ago

eod gravatar image

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.