Hi!
I’m trying to use latex on a plotly figure (yaxis) but streamlit doesn’t recognize it and shows the raw code, but when I visualize in jupyter lab the latex code shows fine
Same experience here. I can only get latex to show in figures using matplotlib.
Same here, pretty annoying… Has this been fixed/hacked?
having the same problem. anyone? Bueller?
I guess it is not solved yet?
I’m also having the same issue. I notice that the plotly documentation notes that Mathjax may need to be separately loaded? Any ideas on how to do this?
Any updates on this issue?
I was able to create the following graph and using μg/m<sup>2</sup>
, I was also able to deploy in the cloud. I hope this solves your use case, code is provided below:
import streamlit as st
import plotly.express as px
fig = px.line(x=[1, 2, 3, 4], y=[1, 4, 9, 16], title=‘test title’)
fig.update_layout(
xaxis_title='test',
yaxis_title='μg/m<sup>2</sup>'
)
st.plotly_chart(fig)