Hacker News new | ask | show | jobs
by wodenokoto 1869 days ago
Last time I tried putting a lisp into jupyter as a playground for church, I realized that I was missing all the plotting features to really get anywhere and before I realized it, I had to stop my self from reimplementing church’s standard library.

I’ll have a look on google on the names you mentioned :)

1 comments

In nextjournal you can plot clojure output trivially with plotly or vega-lite. It’s just a matter of adding metadata to your output, like this:

    ^{:nextjournal/viewer :plotly}
    {:data [{:x '(0 10 20 30 40)} 
            {:y '(5 10 15 20 25)}]
     :layout {:autosize false :width 800 :height 400 
              :xaxis1 {:title "year"} 
              :yaxis1 {:title "revenue"}}}
See the result here:

https://nextjournal.com/kommen/plotting-from-clojure

Regarding anglican, here is a link. It’s basically a church port:

https://probprog.github.io/anglican/