Fork me on GitHub
#reveal
<
2020-12-07
>
Stefan09:12:29

From this day on, Reveal is part of my standard development flow. AWESOME!!!! 🎉 Thanks so much @vlaaad!

parrot 3
vlaaad10:12:50

I’m glad you like it! Very curious to know how you use Reveal — do you use it mostly as a repl output with tap> and occasional eval-on-selection? Or maybe you also use built-in visualisations and tools to build ad-hoc UI? Or what?

Stefan10:12:58

It’s too early to tell at this point, but I very much like the ease of exploring my data. Just see what’s there. Since a few months, I’m working on a large years-old codebase, so the exploration is great. And definitely also tap> support. I’m not sure yet if I will be using the eval capabilities a lot.

❤️ 3
Stefan10:12:42

Having multiple ways of visualizing data is definitely very cool; I don’t have an active need as such, but I suspect I have a passive need if you know what I mean 😉

andrea.crotti16:12:24

how do I actually run reveal from cider?

andrea.crotti16:12:46

I mean if I use the alias with main-opts and jack-in it just runs the reveal UI but I don't get a repl

andrea.crotti16:12:08

maybe I need to avoid the main-opts and then fire up reveal manually when I get the repl?

vlaaad16:12:22

Since you are using nrepl, you can use nrepl middleware that is bundled in reveal

andrea.crotti16:12:40

but I thoguht so but I tried to connect and it didn't manage

vlaaad16:12:09

you should have reveal on the classpath, add middleware and launch cider/nrepl as usual

andrea.crotti17:12:40

one thing I noticed is that the reveal interface relies a lot on the mouse to move around and scroll

andrea.crotti17:12:02

I guess there isn't a way to make it more keyboard based?

vlaaad17:12:34

@andrea.crotti Everything you can do in Reveal you can do with keyboard

vlaaad17:12:03

If anything, there is some stuff that is accessible only by keyboard 😂

vlaaad17:12:26

Hmm, I guess navigating charts does require mouse after all... Where do you reach for mouse?

andrea.crotti17:12:18

ah right I just didn't know how to use it then 😄

andrea.crotti17:12:14

yeah I guess the annoying is that when I don't have a proper tiling window manager available I have to keep the reveal window handy somwhere

andrea.crotti17:12:30

but well not much can do about that unless it runs inside Emacs 😄

andrea.crotti17:12:35

which I guess it's not possible sadly

vlaaad17:12:56

Re emacs, I'm planning to add a remote control capabilities to Reveal so you'll be able to use it without leaving emacs. Design is TBD, but it's an agenda item for me

vlaaad17:12:27

What os do you use @andrea.crotti?

andrea.crotti20:12:16

arch on my personal

andrea.crotti20:12:21

another Linux for work

dharrigan20:12:41

I use Arch, what WM do you use?

andrea.crotti20:12:38

the problem is the work box where it's more complicated

andrea.crotti20:12:49

and I can't really use a nice tiling WM

dharrigan20:12:28

I use i3 too

dharrigan20:12:37

(i3-gaps to be precise)

andrea.crotti20:12:41

and yeah remote control would be awesome I guess

andrea.crotti20:12:47

not having to switch windows

JAtkins21:12:20

Anyone using Shadow CLJS + Reveal + Cursive successfully? I've tried to set it up a few times, but the integration ends up being terrible. It could be issues with the other projects, but I figured I'd see if anyone has a working setup before I go bug them 🙂

vlaaad08:12:50

Haven’t tried myself, but it seems you need to have :prepl specified in your shadow cljs config (see https://github.com/thheller/shadow-cljs/issues/508#issuecomment-535866881)

vlaaad08:12:50

Then you’ll need to use remote-prepl (described here: https://vlaaad.github.io/reveal/#remote-prepl) to connect reveal to shadow-cljs project

vlaaad08:12:51

Cursive setup is a local repl as described in https://vlaaad.github.io/reveal/#cursive

vlaaad08:12:05

But in Parameters, instead of -m vlaaad.reveal repl you’ll need something like -m vlaaad.reveal remote-prepl :port your-prepl-port-number

JAtkins09:12:56

Yup. I have it working (mostly), but the integration seems off. Particularly cursive prepl seems really weird. Not a reveal issue, but this is where I expected to see the most people who may have had similar issues.

JAtkins09:12:34

Technically it could be reveal’s problem, but I doubt it.

vlaaad09:12:34

what seems weird?

JAtkins09:12:51

Cursive won’t do any of the REPL tooling, e.g. when sending a form to the REPL the statement should be evaluated in the context of the namespace of the file.

JAtkins09:12:56

Also, a bunch of what I presume to be prepl messages end up in the console unparsed

JAtkins09:12:11

It’s more likely than not Cursive’s issue. I just figured I’d find more people who have tried this setup in here than in the cursive channel.

vlaaad09:12:25

> Cursive won’t do any of the REPL tooling, e.g. when sending a form to the REPL the statement should be evaluated in the context of the namespace of the file. There is “Switch REPL NS to Current File” command

JAtkins09:12:00

Right. Separate issue though - typically cursive will bracket calls to the REPL with the current ns and a call to return it to where it was. Part of its nrepl integration.