Nextjournal / Sep 14 2021
Clojure
{:deps {org.clojure/clojure {:mvn/version "1.10.1"}
;; complient is used for autocompletion
;; add your libs here (and restart the runtime to pick up changes)
compliment/compliment {:mvn/version "0.3.9"}}}
deps.edn
Extensible Data Notation
(tap> [:hello from-clojure (clojure-version) "👋"])
(tap> {:nextjournal/viewer :plotly}
{:data [{:y (shuffle (range 10)) :name "The Federation"}
{:y (shuffle (range 10)) :name "The Empire"}]
:layout {:height 150}})
(tap> {:nextjournal/viewer :vega-lite}
{:width 650 :height 400
:data {:url "https://vega.github.io/vega-datasets/data/us-10m.json"
:format {:type "topojson" :feature "counties"}}
:transform [{:lookup "id"
:from
{:data {:url "https://vega.github.io/vega-datasets/data/unemployment.tsv"}
:key "id"
:fields ["rate"]}}]
:projection {:type "albersUsa"}
:mark "geoshape"
:encoding {:color {:field "rate" :type "quantitative"}}})
0.4s
Clojure
Vector(4)[:hello, from-clojure, "1.10.1", "👋"]
true