Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Matplotlib backend issue (TkAgg)

Aperta
#1,652 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
matplotlib, python
Ambito
devtools

Direzione di ricerca

Inizia riproducendo la figura TkAgg vuota e non reattiva nel debugger di VS Code usando Python 3.9.5, Matplotlib 3.9.1–3.9.2 e VS Code 1.92.1. Confronta il comportamento del debugger e il backend riportato con la normale esecuzione di uno script e analizza l’issue di Matplotlib collegata; il lavoro è completato quando vengono identificate la causa della discrepanza del backend e del comportamento di plotting specifico del debugger.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Hey, I am having an issue plotting stuff in the debugger.

When I import matplotlib and print the backend, the output is 'tkagg'.
When I try to plot something, I will get an unresponsive blank figure (unless i call pause which will make desired plot appear but albeit remain unresponsive). When I set backend to 'TkAgg', it works as expected.

When I run the script normally not in the debugger, everything works fine and the plot appears.

What is weird is that my colleague has the same versions of python matplotlib and vs code yet by default has a backend of 'TkAgg'.
I am not sure what's causing this discrepancy in default backend between the two of us. In any case, according to matplotlib documentation and the linked issue, tkagg and TkAgg should be equivalent.

Relevant issue: Matplotlib
VS Code version: 1.92.1
Python: 3.9.5
Matplotlib: (3.9.1 - 3.9.2)

Lingua principale
Python
Stelle
2.5k
Fork
202
Merge medio
5g 1h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/debugpy

Tutte le issue di microsoft/debugpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.