reveal 2020-12-07

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

🦜 1

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?

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.

❤️ 1

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 😉

how do I actually run reveal from cider?

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

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

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

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

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

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

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

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

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

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

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

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

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

which I guess it's not possible sadly

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

arch on my personal

another Linux for work

I use Arch, what WM do you use?

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

and I can't really use a nice tiling WM

I use i3 too

(i3-gaps to be precise)

and yeah remote control would be awesome I guess

not having to switch windows

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 🙂

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)

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

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

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

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.

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

what seems weird?

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.

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

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.

> 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

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.