Julia on VSCode with PyPlot

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:

With this you get the plots in the plot panel/navigator:

using PyPlot
figure()
plot(1:10)
display(gcf())
1 Like

It might have something to do with interactive plotting. You can try ion() before you plot something. ioff() is the opposite function.