This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-02
Channels
- # announcements (13)
- # babashka (42)
- # beginners (29)
- # calva (39)
- # cider (15)
- # clerk (10)
- # clojure (67)
- # clojure-europe (18)
- # clojure-hungary (2)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-uk (7)
- # clojuredesign-podcast (14)
- # clojurescript (19)
- # datalevin (1)
- # datascript (5)
- # emacs (4)
- # events (2)
- # fulcro (5)
- # graalvm (5)
- # hyperfiddle (23)
- # incanter (3)
- # jobs (2)
- # lsp (8)
- # missionary (15)
- # off-topic (45)
- # portal (41)
- # practicalli (1)
- # re-frame (3)
- # reitit (6)
- # releases (2)
- # remote-jobs (1)
- # sci (1)
- # shadow-cljs (35)
- # solo-full-stack (8)
- # tools-deps (4)
Is there a way to toggle whether or not comments show up as text in a notebook? I do a fair amount of setting things up at the top of the notebook that will eventually be factored out, but I'd like to be able to add comments w/o seeing it in the notebook
thx! that's what I've been doing. Just a bit clunky. Just didn't want to miss something obvious
Is there a version of clerk/example
that doesn't show the source code of the form it displays (just the results)?
Using (when nextjournal.clerk.config/*in-clerk* ...)
is enough for now, but if I have a namespace that doesn't have a dependency on Clerk this will throw an unresolved symbol error, right?
if you want to go that route, you can add a resolve
/ ns-resolve
check to your when
to avoid trying to check the symbol if it isn’t defined
@UFTRLDZEW here’s what I have on this other project:
(defmacro clerk-comment
"Evaluates the expressions in `body` showing code next to results in Clerk.
Does nothing outside of Clerk, like `clojure.core/comment`."
[& body]
(when nextjournal.clerk.config/*in-clerk*
`(nextjournal.clerk/fragment ~(vec body))))
(intern 'nextjournal.clerk (with-meta 'comment (meta #'clerk-comment)) @#'clerk-comment)
Using (when nextjournal.clerk.config/*in-clerk* ...)
is enough for now, but if I have a namespace that doesn't have a dependency on Clerk this will throw an unresolved symbol error, right?