plotly / plotly/plotly.py

Plotly 5.x recommends `pip install -U kaleido` which is no longer compatible

オープン
#5,241 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@emilykl がすでに取り組んでいます。

2025年6月25日 から。

feature P1
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

Just ran into this issue since kaleido 1.0.0 was just released yesterday.

Steps to Reproduce

  1. Install plotly 5.x (pip install "plotly<6.0.0")
  2. In a python session, create a plotly figure and try to write it using to_image (using instructions from https://plotly.com/python/static-image-export/)
  3. Follow the steps in the error message to install kaleido pip install -U kaleido
  4. Repeat step 2

Expected Results
4. Image export should work

Actual Results
4. Get an error about the version of kaleido not being compatible with plotly.

Warning: You have Plotly version 5.24.1, which is not compatible with this version of Kaleido (1.0.0).

This means that static image generation (e.g. `fig.write_image()`) will not work.

Please upgrade Plotly to version 6.1.1 or greater, or downgrade Kaleido to version 0.2.1.

Two things could help here:

  1. In plotly 5.x, update the error message to say pip install -U "kaleido<1.0.0": https://github.com/plotly/plotly.py/blob/5d79b80c53f779274170743539a481c524e04c8f/packages/python/plotly/plotly/io/_kaleido.py#L136
  2. In kaleido 1.x, update the error message to say how to upgrade plotly or downgrade kaleido, e.g. pip install -U plotly, or pip install "kaleido<1.0.0"

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。