Figure does not display LaTeX expressions in JupyterLab and Jupyter Notebook
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
There is an issue with rendering LaTeX titles in JupyterLab:
fig = go.Figure()
fig.add_scatter(y=[1,3,2], mode='lines+markers')
fig.layout.update(title='$\\text{Negative Log of Estimated Survivor Function}$',
xaxis_title='$t$', yaxis_title='$-log(S(t))$',
height=600)
fig.show()
Does not actually display the titles:

And this is strange as earlier today it did work fine.
I have encountered other anomalies in JupyterLab, such as after restarting the session, one image elongates and stays like that.
Does not happen every time though.
Details
Plotly version: 4.0.0
Ubuntu 18.04.2
Here it is:

Sometimes it elongates and stays like that:

UPDATE 1:
I've just updated to 4.1.0 and now the LaTeX titles are displayed. But, the mentioned anomaly is still there.
UPDATE 2:
I have opened the notebook today again and the title disappears.
If it is of any help. here is what is displayed in the terminal:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the provided figure in JupyterLab and Jupyter Notebook using the Plotly 4.0.0 and 4.1.0 versions described. Start by comparing the rendered LaTeX titles and the image-elongation behavior, then review the terminal output shown in the issue. Done means LaTeX titles render consistently and figures no longer elongate after restarting the session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, jupyter-notebook, latex, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100