nextjournal

sparkofreason 2021-11-27T22:49:20.135900Z

Any tips on using clerk and libpython-clj together? Currently getting an error from the viewer trying to look at a simple numerical result:

[{:type java.lang.AssertionError,
   :message "Assert failed: n must be a number?\n(number? n)",
   :at
   [nextjournal.clerk.viewer$bounded_count_opts
    invokeStatic
    "viewer.cljc"
    308]}]
...

sparkofreason 2021-11-27T23:30:48.136Z

The type of the result is java.lang.Double. works fine in the repl. Will make a repro if this sounds like a bug.

mkvlr 2021-11-28T07:45:41.137100Z

yes please, a small repro would be great

sparkofreason 2021-11-28T13:38:16.143100Z

Added to a fork of clerk-demo. Start the server, run this notebook: https://github.com/sparkofreason/clerk-demo/blob/main/dev/user.clj#L21