# Makie record\_states and export\_static results in NO interactivity

**URL:** <https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712>\
**Category:** Visualization\
**Created:** [April 4, 2025, 3:15pm UTC](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712 "2025-04-04T15:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjarthur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjarthur/32/9638_2.png) [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Post date:** [April 4, 2025, 3:15pm UTC](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712/1 "2025-04-04T15:15:35Z")

</div>

i’m trying to save an interactive Makie plot to share with a colleague who doesn’t use julia, but i can’t even get this [example](https://docs.makie.org/v0.22/explanations/backends/wglmakie#Record-a-statemap) in the docs to work.

specifically, at the REPL i enter:

```julia
julia> using Bonito, WGLMakie

julia> App() do session::Session
           n = 10
           index_slider = Slider(1:n)
           volume = rand(n, n, n)
           slice = map(index_slider) do idx
               return volume[:, :, idx]
           end
           fig = Figure()
           ax, cplot = contour(fig[1, 1], volume)
           rectplot = linesegments!(ax, Rect(-1, -1, 12, 12), linewidth=2, color=:red)
           on(index_slider) do idx
               translate!(rectplot, 0,0,idx)
           end
           heatmap(fig[1, 2], slice)
           slider = DOM.div("z-index: ", index_slider, index_slider.value)
           return Bonito.record_states(session, DOM.div(slider, fig))
       end

julia> export_static("example.html", ans)

```

it opens up a new tab in my browser and i can move the slider and see things move. but if i open “example.html” in another tab, nothing moves.

isn’t that the whole point of this example? that “There are a couple of ways to keep interacting with Plots in a static export”, and that “Record a statemap” is one of them?

what am i doing wrong?

worth noting too that while the slider appears in the hosted docs online, neither of the two plots below it does.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 5, 2025, 1:50pm UTC](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712/2 "2025-04-05T13:50:51Z")

</div>

`record_states` has never been particularly stable, and not working on it hasn’t improved that fact.  
I just tried it and it seems genuinly broken ☹  
Not sure when it stopped working.

> worth noting too that while the slider appears in the hosted docs online, neither of the two plots below it does.

Yeah, they didn’t survive getting ported to [DocumenterVitepress](https://github.com/LuxDL/DocumenterVitepress.jl) ☹

We’re at our ~10th attempt to fix it, but Vitepress stays stubborn with its flimsy, hard to correctly use HTML pass through.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 5, 2025, 1:57pm UTC](https://discourse.julialang.org/t/makie-record-states-and-export-static-results-in-no-interactivity/127712/3 "2025-04-05T13:57:41Z")

</div>

See: [vitepress by lazarusA · Pull Request #309 · SimonDanisch/Bonito.jl · GitHub](https://github.com/SimonDanisch/Bonito.jl/pull/309)
