This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-28
Channels
- # announcements (19)
- # aws (4)
- # babashka (17)
- # beginners (74)
- # biff (2)
- # calva (5)
- # cider (6)
- # clerk (14)
- # clj-kondo (12)
- # cljs-dev (3)
- # clojure (40)
- # clojure-dev (26)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (39)
- # clojure-sweden (1)
- # clojure-uk (4)
- # conjure (2)
- # docker (35)
- # emacs (24)
- # graalvm (15)
- # graphql (1)
- # gratitude (4)
- # holy-lambda (2)
- # hyperfiddle (8)
- # introduce-yourself (3)
- # jobs (3)
- # nrepl (2)
- # off-topic (9)
- # pedestal (8)
- # reitit (5)
- # releases (3)
- # remote-jobs (3)
- # yamlscript (1)
I have been trying to set up clay like here https://github.com/scicloj/clay/blob/main/resources/calva.exports/config.edn. I tried to use this for clay, which I think is now outdated https://github.com/Olical/conjure/wiki/Integrating-with-Clay-and-data-visualisation-tools. When I tried updating that function like this
(defn eval-clojure-for-viz []
(eval.eval-str
{:origin "custom-clay-wrapper"
:code (str.join
""
["(scicloj.clay.v2.api/make! " {:base-source-path nil
:source-path *file*
:single-form (a.get (extract.form {:root? true}) :content)} ")"])}))
I see the string form being sent to the browser like evaluating (+ 2 2) prints the form "(+ 2 2)" in the browser instead of 4. I'm not too familiar with fennel so I'm pretty sure I getting this wrong. Any help here would be appreciated.I moved this message from the neovim channel, this one seemed more appropriate to ask