reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
fabrao 2020-10-09T12:57:04.035700Z

hello all, when you say `

clj -A:reveal -J-Dclojure.server.repl='{:port 5555 :accept vlaaad.reveal/repl}'
where -A:reveal reveal alias is configured?

vlaaad 2020-10-09T12:58:01.036200Z

nowhere, it’s assumed to have :extra-deps {vlaaad/reveal {:mvn/version "1.0.130"}}

vlaaad 2020-10-09T12:58:17.036600Z

I probably should state it in the readme 😄

vlaaad 2020-10-09T13:00:25.037100Z

it’s also a good idea to add :ns-default vlaaad.reveal , and maybe even :exec-fn repl

vlaaad 2020-10-09T13:01:05.037800Z

I’ll add it to the readme. Here is an example that makes reveal easy with -X as well: https://github.com/practicalli/clojure-deps-edn/blob/2b0562a69b8a2e55fd8736f6ee5482e5090511e8/deps.edn#L258-L262

fabrao 2020-10-09T13:03:32.038300Z

I forgot to include

vlaaad/reveal {:mvn/version "1.0.130"}

fabrao 2020-10-09T13:03:35.038500Z

😞

fabrao 2020-10-09T13:06:16.039300Z

I tried to do something crazy, Chlorine connecting to reveal 🙂

vlaaad 2020-10-09T13:12:05.039800Z

You might be interested in this discussion: https://github.com/vlaaad/reveal/issues/2

fabrao 2020-10-09T13:37:52.040300Z

thank you !!!

vlaaad 2020-10-09T13:38:05.040500Z

np 🙂

seancorfield 2020-10-09T17:25:30.041700Z

@fabrao If you use my atom-chlorine-setup config, that will tap> every evaluation, so if you start Reveal's REPL it adds its UI as a tap watcher automatically (right @vlaaad?)

seancorfield 2020-10-09T17:26:58.043300Z

Otherwise, if you start any REPL with Reveal on the classpath, you can do (add-tap (vlaaad.reveal/ui))

fabrao 2020-10-09T17:26:59.043500Z

Hello Sean, I´ll take a look

seancorfield 2020-10-09T17:27:15.043900Z

(I see I've posted a load of info into issue #2 above about that)

seancorfield 2020-10-09T17:27:35.044300Z

I'm using Reveal full-time these days (instead of REBL).

seancorfield 2020-10-09T17:28:14.045400Z

(now that I have the auto-table-view thing that Vlad provided me with for always showing the most recent tap> result in a table!)

fabrao 2020-10-09T17:28:18.045600Z

I didn´t like REBL, and I was thinking call you and ask how do you use it

vlaaad 2020-10-09T17:29:25.045900Z

That's right, reveal repls add tap watchers

fabrao 2020-10-09T17:30:09.047Z

it seens that you use all thoses in your config? REBL, Reveal and Portal

seancorfield 2020-10-09T17:30:41.047500Z

There are still things that REBL does with datafy/`nav` that I really like (and miss somewhat in Reveal) but Reveal's UI has grown on me 🙂

seancorfield 2020-10-09T17:32:02.048600Z

My dot-clojure file you mean @fabrao? It is a "kitchen sink" of everything I might use on any project -- and my atom-chlorine-setup is designed to automatically use REBL if it is running else fall back to just calling tap>

seancorfield 2020-10-09T17:32:27.049100Z

Both Reveal and Portal support tap>

seancorfield 2020-10-09T17:33:48.050800Z

The only "benefit" of having custom REBL support in there is that REBL's submit accepts both a source form and a value so it can show you what was evaluated, and that is part of the history that you can call into the REPL pane to modify and resubmit inside REBL. Reveal and Portal effectively only support the value part of that since that's what gets sent via tap>.

fabrao 2020-10-09T17:39:12.051900Z

I´m building may own atom-chlorine-setup like you, and I´ll take a look that part about using reveal

fabrao 2020-10-09T17:40:56.052400Z

how do you use chlorine-config.cljs ? Do you compile it ?

seancorfield 2020-10-09T17:42:38.052900Z

No. Chlorine just evaluates it as-is.

fabrao 2020-10-09T17:43:54.053200Z

😱 I didn´t know that

seancorfield 2020-10-09T17:45:20.054500Z

You can easily edit it inside Atom, once you have Chlorine active (via a REPL), via the "Chlorine: Open Config" command. Changes take effect immediately since it's all interpreted using sci (from borkdude).

seancorfield 2020-10-09T17:48:31.055200Z

@fabrao Feel free to bombard me with Chlorine questions in the #chlorine channel, if you get stuck 🙂

fabrao 2020-10-09T17:49:27.055500Z

sure 🙂

vlaaad 2020-10-09T17:55:37.056500Z

@seancorfield re submit to REBL including form, this is possible in Reveal:

(require '[vlaaad.reveal :as r]
         '[vlaaad.reveal.ext :as rx])

(def ui (r/ui))

(defn submit-with-form [form value]
  (ui (rx/stream-as-is
        (rx/vertical
          (rx/as form
            (rx/raw-string (pr-str form) {:fill :util}))
          (rx/horizontal
            (rx/raw-string "=>" {:fill :util})
            rx/separator
            (rx/stream value))))))

(submit-with-form '(+ 1 2 3) 6)

;; reveal shows:
;; (+ 1 2 3)
;; => 6

vlaaad 2020-10-09T17:56:39.057100Z

no history to edit/re-evaluate though...

seancorfield 2020-10-09T18:00:12.057500Z

Nice!

vlaaad 2020-10-09T18:16:32.057700Z

Made it an example: https://github.com/vlaaad/reveal/blob/master/examples/e06_submit_with_form.clj

fabrao 2020-10-09T18:48:32.059200Z

I´m trying view:table and see some columns with ... , is it expandable too or just with navigate into it?

vlaaad 2020-10-09T19:07:51.059900Z

you can see the whole value in a cell with view:value action

vlaaad 2020-10-09T19:08:46.060700Z

same popup, same shortcut there