Fork me on GitHub
#nextjournal
<
2021-11-27
>
sparkofreason22:11:20

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]}]
...

sparkofreason23:11:48

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

mkvlr07:11:41

yes please, a small repro would be great

sparkofreason13:11:16

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