plotly.py: Latex not working in jupyter notebook v7.
I recently upgraded to jupyter notebook v7 and I noticed that some plotly plots that previously rendered flawlessly now fail to render. I get the following output:
After some exploration I found out that it comes from an error using MathJax in jupyterlab-plotly
. It tries to access MathJax.config.startup.output
, but MathJax.config.startup
is undefined
.
It is very easy to reproduce this error:
- Create a new python environment (I tried with python 3.8).
pip install jupyter plotly
- Open a jupyter notebook with
jupyter notebook
. - Run a cell with the following code:
from plotly.graph_objects import Figure
Figure().update_layout(title="$Title$")
About this issue
- Original URL
- State: open
- Created 10 months ago
- Comments: 23 (11 by maintainers)
@pfebrer Thanks, sorry to be dense, but what precisely would one have to do to make it work? Could that be folded into the plotly-py code?
The issue is kind of 3 months old, and it seems that there has been no explanation or acknowledgment of this issue.
But, I don’t really know what that means. Maybe the solution is obvious to someone?