Hacker News new | ask | show | jobs
by wodenokoto 1870 days ago
I wish I could have Church as a Jupyter notebook/lab Kernel.

Would make it much easier to play around with the language when trying to wrap my mind around the church version of probmods.

1 comments

Not exactly the same thing but try clojure with anglican in nextjournal to see if it fits your needs.
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 :)

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/