Skip to content

Commit 970f38c

Browse files
committed
PyPlot.jl: also use display in reveal
1 parent 9546f63 commit 970f38c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## [1.16.1] - 2025-12-01
4-
- `Plots.jl`: fixed missing plots in VSCode by using `display` instead of `Plots.gui`
4+
- `Plots.jl` and `PyPlot.jl`: fixed missing plots in VSCode by using `display` in `reveal`
55

66
## [1.16.0] - 2025-11-18
77
- Add PythonPlot to the backends

src/pycommon.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ function reveal(p::GridVisualizer, ::Type{T}) where {T <: AbstractPythonPlotterT
3636
p.Plotter.draw()
3737
sleep(1.0e-3)
3838
end
39-
return p.Plotter.gcf()
39+
current_figure = p.Plotter.gcf()
40+
display(current_figure)
41+
42+
return current_figure
4043
end
4144

4245
function reveal(ctx::SubVisualizer, TP::Type{T}) where {T <: AbstractPythonPlotterType}

0 commit comments

Comments
 (0)