I managed to work out a solution in the end, using the clear_output command and forcing IJulia to display the plot. If anyone knows of a fancier solution with the Reactive and Interact packages, I'd still be interested.
Inline version: (really slow for me)
using PyPlot
pygui(false)
x = linspace(0,1,100)
PyPlot.hold(false)
IJulia.clear_output(true)
plot(x, t*(1-x).*x)
axis([0,1, -.3, .3])
display(gcf())
end
Interactive version:
using PyPlot
pygui(true)
x = linspace(0,1,100)
PyPlot.hold(false)
IJulia.clear_output(true)
p = plot(x, t*(1-x).*x)
axis([0,1, -.3, .3])
PyPlot.draw()
end
On Monday, 25 July 2016 15:23:23 UTC+2, Thomas Hudson wrote: