Fork me on GitHub
#reveal
<
2020-12-03
>
seancorfield01:12:56

@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)

seancorfield01:12:40

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!

seancorfield02:12:46

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

πŸ™‚ 3
πŸ‘ 6
dharrigan08:12:35

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

vlaaad09:12:26

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

dharrigan10:12:07

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

dharrigan11:12:01

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

vlaaad11:12:48

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

dharrigan11:12:38

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

dharrigan11:12:49

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

dharrigan11:12:54

I thought it was a highlighed line

dharrigan11:12:05

as the light grey stretched all across the window

dharrigan11:12:28

Perhaps a light 1px border around the tab bar?

dharrigan11:12:07

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

dharrigan11:12:56

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.

dharrigan11:12:39

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

vlaaad11:12:08

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

dharrigan11:12:55

fantastic! πŸ™‚

vlaaad11:12:24

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

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

dharrigan11:12:35

will try! thank you.

wilkerlucio22:12:36

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?

vlaaad07:12:46

Yes, you can use nrepl middleware in cursive as well

wilkerlucio23:12:08

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

vlaaad08:12:19

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.

vlaaad08:12:54

You can use line chart views explicitly:

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

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

vlaaad08:12:35

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

wilkerlucio11:12:28

how do I use this?

wilkerlucio11:12:44

I tried

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

vlaaad14:12:07

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

πŸ‘ 3