This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-07
Channels
- # announcements (10)
- # architecture (25)
- # babashka (5)
- # beginners (95)
- # calva (1)
- # cider (3)
- # clerk (16)
- # clj-on-windows (41)
- # clojure (64)
- # clojure-europe (7)
- # clojurescript (9)
- # deps-new (2)
- # graalvm (25)
- # honeysql (3)
- # hyperfiddle (19)
- # malli (1)
- # meander (5)
- # music (1)
- # nbb (1)
- # off-topic (54)
- # rdf (10)
- # releases (2)
- # shadow-cljs (12)
- # tools-deps (41)
Hi, all! Just starting to use Clerk and I’m running into whats likely a newbie thing. My environment works like it should (afaik), and, for example, this runs with the expected output:
(-> "data/small.tsv" ;; name of the file
slurp ;; read the contents of the file
csv/read-csv ;; parse the result as csv data
clerk/use-headers ;; tell Clerk to use the first row as headers
clerk/table) ;; render the data as a table
But, I’m trying vega lite - and the tutorial example works fine, but, as soon as I change to a local file:
:data {:url "data/small.tsv"}
I get this:clerk doesn’t serve static files from your working dir. Is your "data/small.tsv"
in your current working directory or on the classpath?
if it’s in your working dir, you can prepend "_fs/data/small.tsv"
and clerk should serve it
Definitely something we could make more clear in the docs 🙂
It’s almost obvious when thinking about it 😉 But, easy not to as the Vega docs talk about local relative file paths and you need to sorta know what Clerk is and what is the backend vs the frontend and what is done where and all that. (So much for abstracting away HTTP and all the rest…).
Are there rules of thumb for what amounts of data Clerk is suitable for? I’m trying to bounce around a 186 Mb file with 1.7 million rows… suboptimal? Or doable with care?