Fork me on GitHub
#clerk
<
2023-03-16
>
mkvlr00:03:20

execution progress for long-running cells is now in main.

🎉 16
💯 6
catjam 2
davesann02:03:06

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.

mkvlr10:03:07

clerk does not reload dependent namespaces for you, you need to manually re-evaluate the namespace or form unless you use require :reload

mkvlr10:03:22

this is regular clojure semantics

mkvlr10:03:45

unless you also ask clerk to watch the dependent namespaces, in that case clerk will eval it

davesann23:03:22

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?

genmeblog21:03:57

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

👍 6
pizzaspin 10
❤️ 2
mkvlr23:03:20

love to see this!

2
bananadance 2
phronmophobic03:03:40

Very cool. The :nextjournal.clerk/toc true feature is super handy. Adding that to my docs as well.

genmeblog08:03:08

Yeah, everything looks very tidy and modern 🙂

Daniel Slutsky17:03:36

beautiful

👍 2