Skip to content

Commit

Permalink
change order of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
pdumin committed Aug 10, 2024
1 parent e2d835c commit 6e964f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ def latex_copy(inp_code):
ltx_code = generate_from_matrix(adj_matrix=frame)

json_tab, matrix_tab, latex_tab = lcol.tabs(['JSON', 'Matrix', 'LaTeX'])
with latex_tab:
st.code(ltx_code)
st.button('Copy to clipboard', on_click=latex_copy, args=(ltx_code, ))
with json_tab:
st.session_state['adj_matrix'] = frame.values
st.json(edges, expanded=False)
with matrix_tab:
st.table(frame)
with latex_tab:
st.code(ltx_code)
st.button('Copy to clipboard', on_click=latex_copy, args=(ltx_code, ))

rcol.latex(ltx_code)

0 comments on commit 6e964f5

Please sign in to comment.