reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
2020-12-03T00:17:19.268200Z

Remote Control?

seancorfield 2020-12-03T01:01:56.270300Z

@didibus I'm having a hard time making your code work via my dev.clj script. If I run it manually in a REPL, it works. If I try to run it via code that uses requiring-resolve on the Rebel Readline symbols, it throws:

Execution error (AssertionError) at rebel-readline.clojure.line-reader/create* (line_reader.clj:1039).
Assert failed: (instance? org.jline.terminal.Terminal terminal)

seancorfield 2020-12-03T01:58:40.271600Z

Pushing through the debugging a bit further, it's because you can't use requiring-resolve with macros because they need to expand at read time not runtime 😞 doh!

seancorfield 2020-12-03T02:29:46.272300Z

OK, figured it all out. @didibus I've integrated your combined Rebel + Reveal into my dot-clojure stuff now πŸ™‚

πŸ‘ 2
πŸ™‚ 1
vlaaad 2020-12-03T06:11:28.272400Z

So you don't have to leave your emacs to navigate around Reveal :)

2
dharrigan 2020-12-03T08:54:35.273800Z

Can reveal detect middle mouse button clicks? It would be nice if I could click the middle mouse (or hold down a key) that would enable me to "pan" the window about, especially if the output is huuuuuge

vlaaad 2020-12-03T09:52:26.273900Z

Hi! Good idea, I’ll add it to a todo list

dharrigan 2020-12-03T10:07:07.274100Z

that's great - could be middle/right mouse, or left mouse with space-bar held down, whatever πŸ™‚ User configurable would be neat πŸ™‚

dharrigan 2020-12-03T11:17:01.274600Z

Is this a good place for suggestions, or do you prefer github?

vlaaad 2020-12-03T11:17:48.274700Z

either is fine, I keep everything in a local md file in the end πŸ™‚

dharrigan 2020-12-03T11:18:38.275400Z

cool, well just playing around, I noticed that...

dharrigan 2020-12-03T11:18:40.275500Z

dharrigan 2020-12-03T11:18:49.276Z

are actually tabs! It took me a while to discover that

dharrigan 2020-12-03T11:18:54.276200Z

I thought it was a highlighed line

dharrigan 2020-12-03T11:19:05.276500Z

as the light grey stretched all across the window

dharrigan 2020-12-03T11:19:28.276900Z

Perhaps a light 1px border around the tab bar?

dharrigan 2020-12-03T11:21:07.277200Z

A bit like this (excuse the horrendous colours...)

dharrigan 2020-12-03T11:21:10.277300Z

dharrigan 2020-12-03T11:21:22.277700Z

<shrug>

dharrigan 2020-12-03T11:21:56.278400Z

I think what I wanted to convey that the light grey (to me) looked like when a line is highlighted, not that each part of the line is clickable.

dharrigan 2020-12-03T11:22:39.278800Z

or perhaps make the 1px black separator a bit bigger, with white as the colour?

dharrigan 2020-12-03T11:22:43.279Z

πŸ™‚

vlaaad 2020-12-03T11:25:08.279500Z

This is already reworked, just isn’t released since there are more UI improvements I want to do

dharrigan 2020-12-03T11:25:55.279700Z

fantastic! πŸ™‚

dharrigan 2020-12-03T11:25:58.279900Z

πŸ™‚

vlaaad 2020-12-03T11:28:24.280400Z

you can try with git coords to see how it looks today:

clj \
-Sdeps '{:deps {vlaaad/reveal {:git/url "<https://github.com/vlaaad/reveal>" :sha "847d60776dab781f4f66e0161e7b2c1dce2ff37e"}}}' \
-m vlaaad.reveal repl

dharrigan 2020-12-03T11:29:35.280800Z

will try! thank you.

wilkerlucio 2020-12-03T22:42:36.283900Z

hello everyone, I have a question on environment setup, I use IntelliJ, and by reveal docs I have to use the clojure.main process to enable it. is there a way to enable reveal using nrepl?

wilkerlucio 2020-12-03T23:12:08.285100Z

another question, is there a way to increase the size of the list to plot the charts? I have a sequence with 14k+ data points, but I see that over 1024 items reveal stops giving the option to plot

vlaaad 2020-12-04T08:52:19.287200Z

Oh, I made a requirement for data points to be at most 1024 so we don't spend too much time checking very long sequences for validity. I probably should just check the first 1024 items and assume the rest are valid too for this action to be available.

vlaaad 2020-12-04T08:54:54.287400Z

You can use line chart views explicitly:

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

{:fx/type rx/line-chart-view
 :data {:xs (range 14000)}}

vlaaad 2020-12-04T08:55:35.287600Z

it gets slow though, because JavaFX creates a new display node for every data point..

wilkerlucio 2020-12-04T11:26:28.288400Z

how do I use this?

wilkerlucio 2020-12-04T11:26:44.288600Z

I tried

(tap&gt; {:fx/type rx/line-chart-view
 :data {:xs (range 14000)}})
but just got the data structure

vlaaad 2020-12-04T14:16:07.289200Z

Eval the code above and select "view" action on a map

πŸ‘ 1