This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-09
Channels
- # announcements (1)
- # babashka (14)
- # calva (8)
- # chlorine-clover (3)
- # clerk (6)
- # clj-kondo (27)
- # cljdoc (20)
- # clojars (6)
- # clojure (53)
- # clojure-denver (8)
- # clojure-europe (17)
- # clojure-nl (1)
- # clojure-norway (270)
- # clojure-uk (5)
- # clojurescript (35)
- # community-development (7)
- # cursive (12)
- # datalevin (3)
- # datomic (26)
- # etaoin (23)
- # exercism (1)
- # hyperfiddle (3)
- # java (14)
- # nrepl (2)
- # off-topic (12)
- # pathom (3)
- # portal (44)
- # practicalli (2)
- # reagent (7)
- # releases (1)
- # shadow-cljs (13)
- # timbre (3)
- # xtdb (4)
Is there a way of making whole sections of a notebook hidden or visible, rather than using visibility
every few lines?
yes, you can use a settings map on the top-level {:nextjournal.clerk/visibility {:code :hide :result :hide}}
see https://book.clerk.vision/#visibility
so something like
{:nextjournal.clerk/visibility {:code :hide :result :hide}}
1
2
3
{:nextjournal.clerk/visibility {:code :show :result :show}}
42
this will hide the code & results for 1 2 3 and then show 42 (and everything coming after it)
Ah! Thanks! I've been overusing ^
as I thought it was necessary and adding it to each call to visibility
. What does ^
actually do?
it changes the metadata https://clojure.org/reference/reader#_metadata