7

I am using plotly version 1.9.3, and using it to embed figures in jupyter notebook in offline mode using

init_notebook_mode()

When I enter TeX notation in labels, titles, etc., the Tex will not render (i.e. $\alpha$ will be displayed as source.

When I use the "save and edit in cloud" toolbar option, in the plotly website it renders correctly.

Can I configure it to render also in the offline mode?

I have both LaTex installation and a local installation of MathJax.

2 Answers 2

9

At the moment, it unfortunately does not seem possible to configure plotly to properly render TeX notations in the offline mode. There is an open issue on their github repo with several users describing this problem.

Sign up to request clarification or add additional context in comments.

Comments

2

For future reference, support was added for rendering LaTeX in offline mode in plotly.py version 3.4.0.

From the changelog:

Added LaTeX typesetting support for figures displayed in the Jupyter Notebook using plotly.offline.iplot and plotly.graph_objs.FigureWidget. Note: There are still outstanding issues with MathJax rendering in FireFox, but it is now working well in Chrome. (#1243)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.