matplotlib / matplotlib/ipympl
PolygonSelector does not work in JupyterLab
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 1.7k
- Fork
- 234
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
## Describe the issue
The PolygonSelector example from the [mpl docs](https://matplotlib.org/stable/gallery/widgets/polygon_selector_demo.html) works very well in the default Qt backend.

However, using `ipympl` in a notebook, nothing happens. No gray point follows the mouse cursor, nothing is drawn when I click. Just the initial figure with the blue dots.
I checked the jupyterlab log console on debug level but there are no errors.
I was wondering if it was related to https://github.com/matplotlib/matplotlib/issues/15852, and tried adding `useblit=False` where the `PolygonSelector` is created, but this did not help.
## Versions
- jupyterlab = 3.4.2
- ipympl = 0.9.1
- matplotlib = 3.5.2
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 với ví dụ PolygonSelector được liên kết trong tài liệu Matplotlib và tái tạo ví dụ đó bằng ipympl trong JupyterLab 3.4.2. So sánh Qt backend đang hoạt động với hành vi trong notebook, bao gồm cả việc thử sử dụng thiết lập useblit=False. Hoàn thành khi điểm con trỏ màu xám và thao tác vẽ đa giác phản hồi với tương tác chuột trong notebook.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- jupyter, jupyter-notebook
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ 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