JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
520 stars 75 forks source link

Widget displays but doesn't update plot #371

Closed machar94 closed 4 years ago

machar94 commented 4 years ago

Hello, I'm relatively new to Julia and I was hoping to get some help working with @manipulate.

I have the following code

using WebIO
WebIO.install_jupyter_nbextension()
using Plots, LinearAlgebra, Interact
gr()
@manipulate for i = 1:100
    m = i
end

Screen Shot 2020-08-06 at 10 18 04 PM This produces a slider that I can adjust, however, the value will not change. I was trying to use the @manipulate to adjust the input to a simple linear function and plot it and saw that this was a test case for debugging if it was a plotting issue or not. I am using Julia version 1.4.1 and working in a Jupyter notebook. I would appreciate any help in solving/debugging this. Thank you!

machar94 commented 4 years ago

I can't explain it but I tried it again a day after and it worked. I'm guessing that it had to do with restarting the notebook/computer (which I thought I had tried but I guess not).