This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (48)
- # beginners (72)
- # calva (65)
- # cider (10)
- # clerk (11)
- # clj-kondo (14)
- # clojure (85)
- # clojure-austin (11)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (6)
- # funcool (6)
- # hyperfiddle (79)
- # introduce-yourself (1)
- # lsp (131)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (49)
- # sql (3)
- # tools-deps (36)
If I have
(ns notebook
(:require [some.namespace :as blah]))
(blah/some-fn ...)
And I change the implementation of some-fn, does clerk reload some.namespace?
This is not working for me. The only way I have been able to get this to work is to explicitly require in the notebook, rather than use the ns declaration. i.e. something like...
(require '[some.namespace :as blah] :reload)
I have all the notebooks and src paths on :watch-paths - but this does not seem to make any difference.clerk does not reload dependent namespaces for you, you need to manually re-evaluate the namespace or form unless you use require :reload
unless you also ask clerk to watch the dependent namespaces, in that case clerk will eval it
Fair enough. it was not clear to me if the watch function implied that it would reload dependencies also. Worth noting in the docs probably. I did not follow your last comment. Do you mean if I ask clerk to watch and display the changed namespaces - then each one changed will be reloaded as it is shown?
I've started documented a fastmath
library in Clerk. Not too much descriptions but all functions are covered with some graphics, references and a lot of examples of usage. Two namespaces so far:
https://generateme.github.io/fastmath/notebooks/notebooks/core.html
https://generateme.github.io/fastmath/notebooks/notebooks/random.html
Very cool. The :nextjournal.clerk/toc true
feature is super handy. Adding that to my docs as well.