Figure does not display LaTeX expressions in JupyterLab and Jupyter Notebook
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
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:

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
記載されている Plotly 4.0.0 および 4.1.0 のバージョンを使用して、提供された図を JupyterLab と Jupyter Notebook で再現します。まず、レンダリングされた LaTeX タイトルと画像が引き伸ばされる挙動を比較し、次に issue に表示されているターミナル出力を確認します。LaTeX タイトルが一貫してレンダリングされ、セッションを再起動した後に図が引き伸ばされなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter, jupyter-notebook, latex, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100