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
run the plt.plot ok, but in the debug mode there is not figure pop up
Python 3.12.5
Mac mini M2
Steps to reproduce:
import numpy as np
import matplotlib.pyplot as plt
print("Hello, World!")
plt.plot(np.random.randn(1000).cumsum())
plt.show()
print("Goodbye, World!")
set a breakpoint on line 3, then use python debug and step over the above code. No figure pops up. In contrast, run the code with breakpoint in vscode or use the default IDLE with breakpoints, the figure works well.
Extension version: 2024.10.0
VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Darwin arm64 23.6.0
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.12.5
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
This is likely caused by either Python 3.12 or your version of matplotlib. Debugpy hasn't been updated to handle matplotlib 3.9 yet (see this issue: #1633).
Python 3.12 support is also not finished yet. See this issue: #1640
I would try 3.11 or an earlier version of matplotlib.
Type: Bug
Behaviour
run the plt.plot ok, but in the debug mode there is not figure pop up
Python 3.12.5
Mac mini M2
Steps to reproduce:
import numpy as np
import matplotlib.pyplot as plt
print("Hello, World!")
plt.plot(np.random.randn(1000).cumsum())
plt.show()
print("Goodbye, World!")
set a breakpoint on line 3, then use python debug and step over the above code. No figure pops up. In contrast, run the code with breakpoint in vscode or use the default IDLE with breakpoints, the figure works well.
Extension version: 2024.10.0
VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Darwin arm64 23.6.0
Modes:
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: