Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 610 Bytes

File metadata and controls

24 lines (16 loc) · 610 Bytes

Streamlit-Mathlive-Editor

A WYSWYG math expression editor for Streamlit using Mathlive math field and on-screen keyboard. Additionally, the component returns the MathML expression of the mathematical expression in the field using MathJaX. image

Installation instructions

pip install streamlit-mathlive

Usage instructions

import streamlit as st
from st_mathlive import mathfield

Tex, MathML = mathfield(title="Equation 1", value=r"\frac{1}{2} \times 5",)

st.latex(Tex)
st.write(MathML)