Figure does not display LaTeX expressions in JupyterLab and Jupyter Notebook
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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:

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduzieren Sie die bereitgestellte Abbildung in JupyterLab und Jupyter Notebook mit den beschriebenen Plotly-Versionen 4.0.0 und 4.1.0. Beginnen Sie mit dem Vergleich der gerenderten LaTeX-Titel und des Verhaltens bei der Bildverlängerung und sehen Sie sich anschließend die in der Issue gezeigte Terminalausgabe an. Als erledigt gilt die Aufgabe, wenn LaTeX-Titel konsistent gerendert werden und sich Abbildungen nach dem Neustart der Sitzung nicht mehr verlängern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter, jupyter-notebook, latex, python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100