Repository navigation
Manually declaring dependent cells #2933
Answered
by
pankgeorg
haakon-e
asked this question in
Questions about using Pluto
|
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()
endthen, updating the arguments to Screen.Recording.2024-06-04.at.3.08.08.PM.mov |
Answered by
pankgeorg
Jun 5, 2024
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(...)
endBut that's really just a variable :D |
1 reply
Answer selected by
haakon-e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.themeand thenBut that's really just a variable :D