plotly / plotly/plotly.py

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

Đang mở
#5,241 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@emilykl đang làm issue này rồi.

Từ ngày 25/6/2025.

feature P1
Ngôn ngữ chính
Python
Star
18.8k
Fork
2.8k
Merge trung bình
16 giờ 26 phút
Pull request đã merge (30 ngày)
21

Mô tả

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"

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.