Fork me on GitHub
#clerk
<
2023-06-09
>
seb23109:06:26

Is there a way of making whole sections of a notebook hidden or visible, rather than using visibility every few lines?

mkvlr10:06:50

yes, you can use a settings map on the top-level {:nextjournal.clerk/visibility {:code :hide :result :hide}} see https://book.clerk.vision/#visibility

mkvlr10:06:14

so something like

{:nextjournal.clerk/visibility {:code :hide :result :hide}}
1
2
3
{:nextjournal.clerk/visibility {:code :show :result :show}}
42

mkvlr10:06:52

this will hide the code & results for 1 2 3 and then show 42 (and everything coming after it)

seb23110:06:46

Ah! Thanks! I've been overusing ^ as I thought it was necessary and adding it to each call to visibility. What does ^ actually do?