make FigureWidget resizing responsive
Chưa có ai nhận issue này.
- 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ả
Hi there,
As suggested by @nicolaskruchten I am open this issue to address FigureWidget specific resizing challenges.
As of the latest 5.12 release the resizing of a plotly FigureWidget is resolved:
import plotly.graph_objects as go
fig = go.FigureWidget()
fig
- #3689
But the issue remains when the widget is in another widget container.
import plotly.graph_objects as go
import ipywidgets as ipw
fig = go.FigureWidget()
ipw.VBox([fig])
- There is a similar issue with bqplot that was adresssed by @mariobuikhuizen [bqplot/bqplot#1531], maybe this is a good starting point (see @maartenbreddels comment https://github.com/plotly/plotly.py/pull/3930#issuecomment-1377376325)
Also it would really help to make responsive webapps with the ipywidgets ecosystem if the FigureWidget would also resize vertically to the available space inside its container.
No one on the Plotly team is really actively working on the Widget side of things so PRs are very welcome :)
I would gladly contribute but my knowledge in javascript is quasi non-existent^^, so I hope some of you are able to help out here.
Best regards, Alex-
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện FigureWidget bên trong ipywidgets.VBox được hiển thị trong issue, sau đó đọc issue bqplot được tham chiếu và bình luận PR của plotly.py để tìm hiểu hành vi thay đổi kích thước liên quan. Công việc được xem là hoàn tất khi FigureWidget thay đổi kích thước một cách đáp ứng bên trong một vùng chứa widget khác, bao gồm cả việc thay đổi theo chiều dọc để phù hợp với không gian khả dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, python
- Lĩnh vực
- frontend, web-dev
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100