clerk

teodorlu 2025-02-13T07:35:25.489709Z

If you're interested in moving your Clerk skills from "show static stuff in a notebook" to "builld interactive viewers", I strongly suggest reading the source for nextjournal.clerk.tap. Copy the code, then make something similar. I find it quite amazing how much those 89 lines get done, and how little state management is required. One synced atom that's swap!-ed into, a nice viewers, and UI controls. https://github.com/nextjournal/clerk/blob/285c20ee6bff22a14c7ea2be274d9ac0a37b7668/src/nextjournal/clerk/tap.clj

🖤 1
👀 4
Syl 2025-02-13T08:52:11.474919Z

https://github.clerk.garden/nextjournal/clerk-demo/commit/bd4af85dd7e045aaab32bdb9966a7ae5c48d0b98/notebooks/sicmutils/notebooks/sicmutils/

b is null

Hide Stacktrace (28 lines)
Gna@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2958:182
Una@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2963:485
Vna@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2964:42
coa@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2967:280
g.wg@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:5052:51
By@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2946:239
Rna@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:2963:75
g.xg@https://storage.clerk.garden/nextjournal/clerk-assets@2WtVkTBNZA213UdQKZmWTVuF7TUJ/viewer.js?immutable=true:5052:216
A bit off-topic but it seems demo example not working.