You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mauricekraus this might be a plotly matplotlib conversion limitation, when trying to display it interactively on the browser. A workaround could be tracking matplotlib figures as Aim images.
@gorarakelyan Thank you for your answer. The problem is that the default Ploty "html" does not include mathjax. When we make the conversion our self it works. What do you think? (WandB suffers from the same problem)
# Import modulesimportnumpyasnpimportmatplotlib.pyplotaspltfromplotly.toolsimportmpl_to_plotly# Create some data arraysx=np.linspace(-2.0*np.pi, 2.0*np.pi, 51)
y=np.sin(x)
# Make a plotmpl_fig=plt.figure()
plt.plot(x, y, 'ko--')
plt.title('$\\alpha$ sin(x) from -2*pi to 2*pi')
plt.xlabel('x')
plt.ylabel('sin(x)')
# plt.show()# Export plot to plotlya=mpl_to_plotly(mpl_fig)
a.write_html("test.html", full_html=False, include_plotlyjs='cdn', include_mathjax='cdn')
If you give me some guidance, I could try to come up with an PR.
🐛 Bug
Latex is not rendered in the aim UI.
To reproduce
Just use any matplotlib based figure with latex in the legened.
Expected behavior
Latex is correctly rendered
Environment
Additional context
Might be related to microsoft/vscode-jupyter#8131
The text was updated successfully, but these errors were encountered: