Skip to content
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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Clerk in Babashka #232

wants to merge 17 commits into from

Conversation

zampino
Copy link
Collaborator

@zampino zampino commented Oct 18, 2022

  • use bb / sci with fixed Expose sci.lang.Namespace babashka/babashka#1397
  • drop stubs folder in favour of .bb source files
  • fix auto-resolve in edamame read for e.g. ::clerk/visibility annotations
  • fix add-viewers! scope
  • var from defs
  • support for markdown notebooks (?)
  • fix slideshow viewer (?)
  • in-memory cache
  • on-disk cache (?)

Usage

Boot both an nREPL and a clerk server running in babashka:

$ bb --config bb-runtime.edn dev --port 9999

build clerk notebooks as static app:

$ bb --config bb-runtime.edn build --browse --paths notebooks/hello.clj notebooks/rule_30.clj

@@ -1275,7 +1285,7 @@
([viewers] (reset-viewers! *ns* viewers))
([scope viewers]
(assert (or (#{:default} scope)
#?(:clj (instance? clojure.lang.Namespace scope))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work now in the newest bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants