def test_html_matrix(): matrix = Matrix(["x", "y"], ((1.0, -0.0), (-0.0, 0.25))) assert (matrix._repr_html_() == r"""<table> <tr> <td/> <th> x </th> <th> y </th> </tr> <tr> <th> x </th> <td> 1.00 </td> <td style="background-color:rgb(250,250,250)"> -0.00 </td> </tr> <tr> <th> y </th> <td style="background-color:rgb(250,250,250)"> -0.00 </td> <td> 0.25 </td> </tr> </table> """)
def test_html_matrix(): matrix = Matrix(["x", "y"], ((1.0, -0.0), (-0.0, 0.25))) # fmt: off assert matrix._repr_html_() == r"""<table>
def test_html_correlation_matrix(): matrix = Matrix(("x", "y")) matrix[:] = ((1.0, 0.707), (0.707, 1.0)) # fmt: off assert matrix._repr_html_() == r"""<table>
def test_html_matrix(): matrix = Matrix(("x", "y")) matrix[:] = ((1.0, 0.0), (0.0, 0.25)) # fmt: off assert matrix._repr_html_() == r"""<table>