Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 9 years ago

Julien gravatar image

How to use matrices with @interact

I found the following example here.

@interact
def _(m=('matrix', identity_matrix(2))):
    print m.eigenvalues()

Unlike the other examples I've tried, this one does not work when evaluated in SageMathCell. But it works well in a SageMathCloud Worksheet.

What am I supposed to do to produce such a matrix interact that works when I embed it in an html page?

click to hide/show revision 2
No.2 Revision

How to use matrices with @interact

I found the following example here.

@interact
def _(m=('matrix', identity_matrix(2))):
    print m.eigenvalues()

Unlike the other examples I've tried, this one does not work when evaluated in SageMathCell. But it works well in a SageMathCloud Worksheet.

What am I supposed to do to produce such a matrix interact that works when I embed it in an html pagepages?

click to hide/show revision 3
No.3 Revision

How to use matrices with @interact

I found the following example here.

@interact
def _(m=('matrix', identity_matrix(2))):
    print m.eigenvalues()

Unlike the other examples I've tried, this one does not work when evaluated in SageMathCell. But it works well in a SageMathCloud Worksheet.

What am I supposed to do to produce such a matrix interact that works when I embed it in html pages?