I recently discovered Latexify.jl
and really like it. I am trying to combine it with Pluto but am failing. I’d appreciate any hints.
I have a pluto notebook with a cell that contains the following.
begin
fex = :(f(x)=sin(2π*x)+sin(5π*x));
eval(fex)
latexify(fex)
end
In the next cell I want to use the function f
with CairoMakie to plot it.
begin
n = 2^8
x = LinRange(0, 1, n)
lines(x, f.(x))
end
I find though that I have to re-evaluate the above cell (shift and enter) to get it to update, which is not the reactivity I was expecting. I was expecting I could change the expression to :(f(x)=sin(2π*x)+sin(10π*x))
and it would update the plot accordingly.
Any thoughts on what I am missing here?