We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2406c9 commit 67c1ed9Copy full SHA for 67c1ed9
crystal_toolkit/core/mpcomponent.py
@@ -497,10 +497,11 @@ def matrix_element(idx, value=0):
497
498
# arrange the input boxes in two dimensions (rows, columns)
499
matrix_div_contents = []
500
- for columns in sorted(matrix_contents.values()):
+ print("matrix_contents", matrix_contents)
501
+ for column_idx in sorted(matrix_contents.keys()):
502
row = []
- for element in sorted(columns.values()):
503
- row.append(element)
+ for row_idx in sorted(matrix_contents[column_idx].keys()):
504
+ row.append(matrix_contents[column_idx][row_idx])
505
matrix_div_contents.append(html.Div(row))
506
507
matrix = html.Div(matrix_div_contents)
0 commit comments