You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the break point is at pass, where Debugger skipped entering the interactive mode, the figure is shown normally.
But if there are break points earlier, e.g., add a break point at plt.plot..., then debug and go though until we stop at pass,
the figure won't be shown, with a wayland icon/window showing in the taskbar, but an invisible figure window.
Turing on interactive mode manually makes the plot invisible too (set break point at pass and debug):
Don't know if this is wayland specific, or also affect X11 (not tested). But note that under wayland, there exists a warning: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() when plt.show().
The text was updated successfully, but these errors were encountered:
Thank you for the proposed fix, sadly it did not help for me. I could not notice any differences (and I verified that I modified the correct file; raising a ValueError led to the expected result).
Environment data
VS Code with Python Debugger v2024.8.0
Actual behavior
Try debugging the following code:
If the break point is at
pass
, where Debugger skipped entering the interactive mode, the figure is shown normally.But if there are break points earlier, e.g., add a break point at
plt.plot...
, then debug and go though until we stop atpass
,the figure won't be shown, with a wayland icon/window showing in the taskbar, but an invisible figure window.
Turing on interactive mode manually makes the plot invisible too (set break point at
pass
and debug):Expected behavior
We expect the interactive plot window be shown as a normal window and response to resize/maximize etc.
Steps to reproduce:
mamba create -n 'test' matplotlib=3.9 qt-wayland
QT_QPA_PLATFORM=wayland;xcb
in/etc/environment
orlaunch.json
Additional information:
QtAgg
backend #858 et al.,qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
whenplt.show()
.The text was updated successfully, but these errors were encountered: