I use jupyter lab and julia 1.6.
I have png files in a directory, and I would like (using a slider or the keyboard) to display all png files one by one. I can make a gif but I would like to explore my files forward, backward or to stop at a specific image.
I tried few things but I obtain always the same result:
I obtain a slider, the first picture. I can move the slider but the image rest the same.
using Interact, FileIO ui = @manipulate for i in slider(1:n_files) display("text/html", string("<img src=", dirfn, readdir(dirf)[i],">")) end display(ui)
using Interact, Images, FileIO test = [load(string(dirfn, readdir(dirf)[i])) for i=1:num_files] ui = @manipulate for i in slider(1:num_files) test[i] end display(ui)
im = Observable(test) N = Interact.slider(1:1:num_files,label="N",value=1) |> onchange on(N) do n im = test[n] end display(N) display(im)
If anyone have an Idea it would be great,
Thank you in advance,