I learned today about the @manipulate macro in Julia 0.5. It allows you to define variables, functions, plots (and etc) in an interactively fashion. I tried the following code in a Jupyter notebook in julia box:
# Add Packages if you don't have them
Pkg.add("Interact") # if needed
Pkg.build("Interact") # if needed
Pkg.add("Plots")
Pkg.add("GR")
# Define packages to be used
using Plots
using Interact
#generate some data
x = linspace(0,10,101);
y = cos(x*2);
# Generate same plot changing it interactively
@manipulate for q in 1:10
plot(x, cos(x*q), label="line")
end
I am data scientist scientist, passionate about helping people using mathematics, programming and chemistry