Using Streamlit for calculations (like Mathcad)

Hey all.

I am curious, if any of you (like engineers) uses Streamlit similar to Mathcad / Calcpad etc. where the calculations are shown step by step. I know handcalc can be passed to st.write or latex, but I want to see what others have chosen.

Welcome to the community and thanks for your thoughtful question! :blush: It seems likely that some engineers use Streamlit for step-by-step calculations similar to Mathcad or Calcpad, especially since Streamlit supports displaying mathematical expressions with LaTeX using st.latex and can render SymPy expressions directly via st.write or st.latex (docs, release notes). Many users leverage these features to show calculations and formulas in a readable, interactive format.

From community discussions, some folks use tools like handcalcs to generate LaTeX for step-by-step math and then display it in Streamlit. Others have built custom components or even WYSIWYG math editors (e.g., Streamlit-Mathlive-Editor) for more interactive math input (forum example, component). If you want to share your code or repo, the community can offer more targeted advice! And if anyone else has a workflow or package they love for this, please jump in and share your experience.

Sources: