Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slider doesn't control plot with using LinearAlgebra #391

Closed
johnfgibson opened this issue Mar 24, 2021 · 1 comment
Closed

slider doesn't control plot with using LinearAlgebra #391

johnfgibson opened this issue Mar 24, 2021 · 1 comment

Comments

@johnfgibson
Copy link

johnfgibson commented Mar 24, 2021

In Jupyter the following code produces a slider and a plot, but the plot doesn't change as I move the slider. It stays frozen showing the plot for the mid value r=5.

using Interact, Plots, LinearAlgebra

@manipulate throttle = 0.05 for r = 0:0.5:10
    x = 0.0:0.01:1.0
    plot(x, sin.(r*x), ylim=(-1,1))
end

But if I remove , LinearAlgebra from the using statement, the lot and slider behave correctly. And it all works correctly if I load LinearAlgebra after making the first interactive plot.

Julia 1.5.1, IJulia 1.21.3, Interact 0.10.3, Plots 0.28.4, WebIO 0.8.15, openSUSE 15.2 linux

@johnfgibson
Copy link
Author

Hmm, somethign is more complex or stranger than I had supposed. Sometimes my sliders work, sometimes they don't, using the exact same code with a fresh Julia kernel, fresh chrome, and the above code executed in cell 1 of the notebook. I'll close this issue and post another if I narrow it down to something not my fault!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant