matplotlib / matplotlib/ipympl
PolygonSelector does not work in JupyterLab
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 1.7k
- Forks
- 234
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Describe the issue
The PolygonSelector example from the mpl docs 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con el ejemplo de PolygonSelector enlazado en la documentación de Matplotlib y reprodúcelo con ipympl en JupyterLab 3.4.2. Compara el backend Qt funcional con el comportamiento en el notebook, incluido el intento de usar la configuración useblit=False. La tarea estará terminada cuando el punto gris del cursor y el dibujo del polígono respondan a la interacción del ratón en el notebook.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- jupyter, jupyter-notebook
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100