How do you show multiple plots in threads concurrently?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Rust
- Star
- 1.5k
- Fork
- 128
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
TLDR: Ultimately, my question is, would it be possible to adapt the Plot type to be Send so we could more easily show multiple plots at once? (or is there another way to achieve that? should we serialize the plot?)
I love Plotly and use it a lot, one thing I noticed is plot.show() is blocking, and the natural way to show multiple plots at once would be to send them to threads, but something about the Traces prevents us from being able to show multiple plots at the same time:
This is workaroundable if we create threads to both create the plot and show it, like this:
but then we can't return the plots made in those threads to our main thread:
also, this approach might trip up if we want to create and show multiple different kinds of plots from multiple different kinds of plot_configs, although i guess we could use an enum like this:
just curious how y'all handle this, right now I'm doing the workaround but thought it would be cool if we could just make a bunch of plots and send em around without issues
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
Issue nêu tên Plot, plot.show(), Traces và plot_configs nhưng không có tệp hay bài kiểm thử nào. Hãy bắt đầu bằng cách xác định các điểm vào đó và tái hiện việc tạo và hiển thị plot đồng thời bằng workaround về thread được mô tả; một giải pháp hoàn chỉnh sẽ cần một cách thức được quyết định và có thể kiểm thử để xử lý các plot qua nhiều thread và cấu hình.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- rust
- Lĩnh vực
- data-visualization
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100