Fork me on GitHub
#reveal
<
2021-10-28
>
chromalchemy15:10:49

If I evaluate a small vector of maps

[{:a 1 :b 2}
 {:a 3 :b 4}]
and view as a table, I see rows and colums as expected. But when I evaluate a larger vector of larger maps, I get all the maps in 1 column, like pictured below. Any idea how I can the rows in this second data set?

vlaaad15:10:30

There is a cap on 16 unique keys for colls of maps, do you have more?

vlaaad16:10:05

The intention behind cap was that is you have too many columns, it's hard to get a grasp of data as a table

vlaaad16:10:27

How many keys does your data have?

chromalchemy05:11:38

Yes, it did have many keys. Thanks, makes sense

chromalchemy05:11:40

Might be ok to scroll /zoom around, left/right, in/out, to get a sense of a larger table?

chromalchemy15:10:38

I am trying to change the font in the JVM prefs. I must use commas instead of spaces, or the argument will break. -Dfile.encoding=UTF-8 -Dvlaaad.reveal.prefs={:theme,:light,:font-family,"JetBrains,Mono"} But this gives me an error,

Failed to read reveal prefs
Execution error - invalid arguments to vlaaad.reveal.prefs/fn at (prefs.clj:38).
"JetBrains,Mono" - failed: valid-url? at: [:font-family :url-string] spec: :vlaaad.reveal.prefs/font-family
"JetBrains,Mono" - failed: system-font? at: [:font-family :system-font] spec: :vlaaad.reveal.prefs/font-family
How can I specify a font family string with spaces in it (in cursive repl options jmv args reveal prefs..)?

vlaaad16:10:05

Ah, that’s embarassing. You can’t use fonts with spaces in them 😞

vlaaad16:10:36

I plan to add support for specifying an edn file with prefs to workaround this limitation

vlaaad16:10:45

I use deps.edn instead of lein, but lein setup in this regard should be similar… What I do is add :jvm-opts ["-Dvlaaad.reveal.prefs={:font-family,\"Comic Code Ligatures\",:theme,:light :font-size 12}"] to reveal alias

vlaaad16:10:16

I think lein uses the exact same syntax for specifying extra jvm opts in profiles

imre16:10:31

:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"JetBrains Mono\",:font-size,14}"] works for me as well (also using clojure cli as opposed to lein)

chromalchemy15:10:17

Once I added nrepl to project.clj Reveal profile deps, Reveal started working. But I am still getting this error. Error loading complete.core: Could not locate complete/core__init.class, complete/core.clj or complete/core.cljc on classpath. I am not sure I have config right. I am still not sure where to put these commands... https://github.com/vlaaad/reveal/issues/20#issuecomment-760208637 Does my config look ok?

:profiles
    {:reveal
       {:dependencies [[dev.vlaaad/reveal-pro "1.3.265"]
                       [nrepl "0.9.0-beta3"]]
                       ;[clj-kondo "2021.10.19"]]
        :repl-options {:nrepl-middleware [vlaaad.reveal.nrepl/middleware]}}}
                                          ;["cider.nrepl/cider-middleware"]]}
        ;:plugins [[cider/cider-nrepl,"0.27.2"]]}} 
The commented out stuff was trying to match the linked issue, but then it started not working...

vlaaad16:10:18

reveal does not use complete library

vlaaad16:10:50

this looks like something from nrepl

vlaaad16:10:00

can you share your run configuration for reveal repl?