Hi All,
I’m using Julia on VSCode. My problem is getting PyPlot to show a figure. The same code work fine on a Julia REPL, but fails with no message when executing code in VSCode. Any ideas?
Thanks,
Ty
Hi All,
I’m using Julia on VSCode. My problem is getting PyPlot to show a figure. The same code work fine on a Julia REPL, but fails with no message when executing code in VSCode. Any ideas?
Thanks,
Ty
Try pygui(true)
.
Ref:
https://github.com/julia-vscode/julia-vscode/issues/325
With this you get the plots in the plot panel/navigator:
using PyPlot
figure()
plot(1:10)
display(gcf())
It might have something to do with interactive plotting. You can try ion()
before you plot something. ioff()
is the opposite function.