This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-03
Channels
- # aleph (2)
- # announcements (13)
- # babashka (7)
- # beginners (36)
- # calva (26)
- # cider (11)
- # circleci (13)
- # clj-kondo (15)
- # clojure (105)
- # clojure-europe (79)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojurescript (17)
- # conjure (4)
- # core-logic (2)
- # cursive (10)
- # data-science (5)
- # datalevin (11)
- # datalog (14)
- # eastwood (6)
- # emacs (2)
- # figwheel-main (1)
- # fulcro (34)
- # google-cloud (1)
- # graphql (3)
- # introduce-yourself (7)
- # jobs (1)
- # leiningen (17)
- # lsp (46)
- # malli (2)
- # minecraft (3)
- # missionary (19)
- # off-topic (31)
- # other-languages (49)
- # polylith (2)
- # portal (5)
- # practicalli (1)
- # quil (77)
- # releases (1)
- # remote-jobs (1)
@djblue Portal continues to blow my mind. Just made my first vega-lite histogram, which is something I’d normally use Oz for.
Sample code for anyone trying to use it — just tap>
a value that has the shape of {:data {:values [..]}}
. Here’s the link Vega-Lite histogram page: https://vega.github.io/vega-lite/examples/histogram.html
(defn vega-histogram
[data]
{:data {:values data}
:mark "bar"
:encoding {:x {:bin true
:field "timestamp"
:type "temporal",
:timeUnit "yearmonth"}
:y {:aggregate "count"}}})
(tap> (vega-histogram (->> rr
;(take 1000)
(map #(select-keys % [:timestamp :op]))
(remove #(nil? (:timestamp %))))))
Out of curiosity, how are you running portal? Why? Quick poll. 1️⃣ - JVM - (p/open) 2️⃣ - vscode - (p/open {:launcher :vs-code}) 3️⃣ - intellij - (p/open {:launcher :intellij}) 4️⃣ - remote - (def submit (partial p/submit {:port 5678})) 5️⃣ - other - please explain.
i like to have portal on a different monitor then my IDE, so the vscode plugin isn’t really helpful sadly
Portal web is really handy to bookmark or install. It doesn’t require a repl and it’s great for pasting data on your clipboard (transit or json, for example).