Can I display an animation created with Luxor in a jupyter notebook?
For example if I put something like the example code for animation
using Colors, Luxor demo = Movie(400, 400, "test") function backdrop(scene, framenumber) background("black") end function frame(scene, framenumber) sethue(Colors.HSV(framenumber, 1, 1)) eased_n = scene.easingfunction(framenumber, 0, 1, scene.framerange.stop) circle(polar(100, -π/2 - (eased_n * 2π)), 80, :fill) text(string("frame $framenumber of $(scene.framerange.stop)"), Point(O.x, O.y-190), halign=:center) text(scene.opts, boxbottomcenter(BoundingBox()), halign=:center, valign=:bottom) end animate(demo, [ Scene(demo, backdrop, 0:359), Scene(demo, frame, 0:359, easingfunction=easeinoutcubic, optarg="made with Julia") ], creategif=true, pathname="anim.gif")
in a cell, I would like the created animation to be displayed directly when the cell is executed (like it works for images).
As an (not really good) alternative option I also tried to display the gif in a markdown cell afterwards with
but that only shows a link with the alternate text. But at least if the link is clicked a new page opens where the animation is displayed. So the link seems to work.