This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-16
Channels
- # adventofcode (43)
- # announcements (31)
- # aws (2)
- # babashka (58)
- # babashka-sci-dev (4)
- # beginners (107)
- # calva (11)
- # cider (25)
- # clj-commons (8)
- # clj-kondo (24)
- # clojure (35)
- # clojure-argentina (1)
- # clojure-europe (25)
- # clojure-italy (5)
- # clojure-nl (11)
- # clojure-norway (39)
- # clojure-spec (11)
- # clojure-uk (3)
- # conjure (2)
- # core-async (19)
- # cursive (33)
- # data-science (2)
- # datomic (50)
- # deps-new (1)
- # emacs (3)
- # events (4)
- # figwheel-main (10)
- # fulcro (63)
- # graalvm (7)
- # holy-lambda (17)
- # introduce-yourself (1)
- # java (15)
- # jobs (1)
- # jobs-discuss (7)
- # malli (24)
- # meander (16)
- # nextjournal (19)
- # off-topic (2)
- # polylith (4)
- # portal (10)
- # re-frame (3)
- # reagent (19)
- # reitit (14)
- # releases (2)
- # remote-jobs (1)
- # reveal (19)
- # shadow-cljs (1)
- # sql (21)
- # testing (4)
- # xtdb (22)
also, I made a short talk (7 min) about Reveal and stickers in action on @reClojure data science special — https://youtu.be/lqb4XlFI-08?t=1220
Hi! What’s the secret to programmatically show some cljfx stuff in the results panel? I’m writing an action that renders some cljfx ui in the results panel, and I’m trying to find an easy way to test it without having to right click on value -> show action popup -> click on action, so I’m hoping that I could do some magic like this instead: (show-this-in-the-results-panel {:fx/type … })
or, if you don’t use reveal as a REPL, but use one window where you want to open the view, use (r/submit-command! (r/open-view {:fx/type ...}))
if you do some sort of iterative progress on a particular view that you have in a def, you could also use observable-view
to watch the var holding the view. Then, you can open the view once and iterate on defed value while the view will update automatically…
here is a demo of observable-view
watching the var the holds a vega visualization data https://youtu.be/lqb4XlFI-08?t=1568
This is really helpful @U47G49KHQ. I too have been doing the manual flow Celio described. It'd be awesome if this knowledge was documented somewhere 🙂
It's mentioned there https://vlaaad.github.io/reveal/#built-in-components
Sorry for the delay. Thanks so much for the info! Yeah I was reading the docs before, trying to make sense of the built-in component fns. I think the missing piece for me was to understand the submit-command!
+ open-view
combo (I don’t use reveal as a repl). I’ll also check out observable-view
, seems useful to my workflow.
> I probably should write another blog post Maybe a short section in the docs on development workflow?
I had similar problems when I played with building new views. Maybe a “common patterns” section would help in the docs. also breaking out the docs for “extending reveal” into its own page might help