# Creating a Streamlit Equation Editor

Has anyone created a WYSIWYG equation editor in Streamlit? It would be really handy to have it built-in, since Streamlit is used so much for maths and data visualisation.

I haven’t, but Im curious as to what an equation editor looks like. Do you have any examples of equation editors? Maybe I’ve seen one before just don’t know it by name.

@Saumya_Shah @conic
here is an example

st.latex(r'''
a + ar + a r^2 + a r^3 + \cdots + a r^{n-1} =
\sum_{k=0}^{n-1} ar^k =
a \left(\frac{1-r^{n}}{1-r}\right)
''')


that looks like a latex display block. It displays equations. I don’t think that is what was meant by WYSIWYG equation editor. Markdown and latex violates WYSIWYG.

@BeyondMyself @conic That’s not a WYSIWYG editor. See Desmos | Scientific Calculator for example. You can type and it dynamically changes. For example, typing ‘/’ makes a fraction, typing ‘sqrt’ brings a square root sign, et cetera. You have created a Latex display block, which is not what I was looking for.

Nice web calulator, I think streamlit have a big space to become more and more mature in the future.
Hope further solution to satisfy you