Manually declaring dependent cells #2933
-
Is there a way to "tell" Pluto that a cell should depend on another cell? In the attached, recorded example, I set the global theme for Makie in one cell, then create a plot in another. If I do this naively, i.e. # cell 1:
Makie.set_theme!( ... )
# cell 2:
begin
heatmap(...)
current_figure()
end then, updating the arguments to Screen.Recording.2024-06-04.at.3.08.08.PM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is exactly the way to do it. I would add a more declarative name to the theme; e.g.: begin
rerun_on_theme_change;
heatmap(...)
end But that's really just a variable :D |
Beta Was this translation helpful? Give feedback.
This is exactly the way to do it. I would add a more declarative name to the theme; e.g.:
rerun_on_theme_change = Makie.theme
and thenBut that's really just a variable :D