Fork me on GitHub
#reveal
<
2021-03-04
>
teodorlu10:03:18

Hello! I was just browsing some huge YAML files, and thought that a good data browser (such as reveal) would be more useful to use for navigation, than just viewing a text file. Are anyone here using reveal as a data browser for JSON/YAML/EDN files? If so, how are you doing it? Are you writing a Clojure snippet? Just pulling it into a Clojure REPL? Something else? I'm not working with Clojure code at the moment, so I don't have a running REPL at all times. I'm wanting to use reveal for this because I think there's huge potential in Reveal, and just using it to browse data would be a good way to get my hands slightly dirty.

vlaaad10:03:22

@teodorlu something like that?

$ cat test.yaml 
a: 1
norway: no
array:
 - x: true
 - foo: bar

$ clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"} clj-commons/clj-yaml {:mvn/version "0.7.106"}}}' -M -e '(((requiring-resolve (symbol "vlaaad.reveal/ui"))) ((requiring-resolve (symbol "clj-yaml.core/parse-string")) (slurp "test.yaml")))'

šŸ‘€ 3
šŸ’Æ 3
vlaaad10:03:42

Iā€™m using reveal from time to time in my Java day job, usually in a REPL with add-lib3 tools-deps branch that can bring in new deps when I need it

šŸ‘€ 3
šŸ‘ 3
teodorlu10:03:18

Fantastic, just what I was looking for! Thank you šŸ™‚