-
Notifications
You must be signed in to change notification settings - Fork 85
Clerk in Babashka #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clerk in Babashka #232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good. Only found some tiny nitpicks.
|
||
#_(-> [(clojure.java.io/file "notebooks") (find-ns 'user)] nippy/freeze nippy/thaw) | ||
|
||
(defn ->cache-file [hash] | ||
(str config/cache-dir fs/file-separator hash)) | ||
(utils/if-bb | ||
(str (fs/file config/cache-dir (str "bb_" hash))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe write the bb cache to a different directory by setting config/cache-dir
differently? otoh that could lead to conflicts when overwriting it…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did it exactly like this to not cause conflicts when overriding the directory.
sci.lang.Namespace
babashka/babashka#1397.bb
source files::clerk/visibility
annotationsadd-viewers!
scopeRelease order:
Usage
Boot both an nREPL and a clerk server running in babashka:
build clerk notebooks as static app: