matplotlib / matplotlib/ipympl
PolygonSelector does not work in JupyterLab
Nessuno ha ancora preso questa issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 1.7k
- Fork
- 234
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l'esempio di PolygonSelector collegato nella documentazione di Matplotlib e riproducilo con ipympl in JupyterLab 3.4.2. Confronta il backend Qt funzionante con il comportamento nel notebook, incluso il tentativo di usare l'impostazione useblit=False. Il lavoro è completato quando il punto grigio del cursore e il disegno del poligono rispondono all'interazione del mouse nel notebook.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter, jupyter-notebook
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100