Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 10, 2024
1 parent 1bbf7ba commit 92b773f
Show file tree
Hide file tree
Showing 4 changed files with 775 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
org.mentat/emmy {:mvn/version "0.32.0"
:exclusions [org.babashka/sci]}
;; emmy needs SCI, here we use the same version as in render:
org.babashka/sci {:git/url "https://github.com/babashka/sci"
#_#_org.babashka/sci {:git/url "https://github.com/babashka/sci"
:git/sha "c556f4474303c61da72e7a07eef496dcbf66a56e"}
io.github.nextjournal/clerk-slideshow {:git/sha "11a83fea564da04b9d17734f2031a4921d917893"}}}

Expand Down
4 changes: 0 additions & 4 deletions notebooks/sci_import_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
(:require [nextjournal.clerk :as clerk]
[clojure.core :as b]))

1

(clerk/with-viewer
{:render-fn
'(fn [_]
Expand All @@ -12,8 +10,6 @@
(js/import "https:/esm.sh/[email protected]/index.mjs")
(.then
(fn [lib]
(js/console.log :>1 lib.formatRelative)
(js/console.log :>2 lib.subDays)
(nextjournal.clerk/html
[:pre (lib.formatRelative (lib.subDays (js/Date.) 2) (js/Date.))]))))))}
nil)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"w3c-keyname": "2.2.4"
},
"devDependencies": {
"process": "^0.11.10"
"process": "^0.11.10",
"shadow-cljs": "^2.28.20"
}
}
Loading

0 comments on commit 92b773f

Please sign in to comment.