This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-18
Channels
- # adventofcode (9)
- # alda (2)
- # babashka (89)
- # beginners (86)
- # bristol-clojurians (1)
- # calva (54)
- # chestnut (2)
- # cider (18)
- # clj-kondo (19)
- # clojure (160)
- # clojure-brasil (2)
- # clojure-europe (6)
- # clojure-italy (8)
- # clojure-nl (46)
- # clojure-spec (52)
- # clojure-uk (45)
- # clojured (4)
- # clojuredesign-podcast (11)
- # clojurescript (15)
- # core-async (50)
- # datomic (41)
- # devops (3)
- # emacs (10)
- # fulcro (95)
- # graalvm (11)
- # graphql (3)
- # kaocha (1)
- # luminus (1)
- # malli (4)
- # off-topic (13)
- # overtone (3)
- # pathom (8)
- # re-frame (13)
- # reitit (10)
- # shadow-cljs (83)
- # spacemacs (2)
- # specter (9)
- # tools-deps (3)
- # vim (2)
Cider question! Is there a way to pprint to buffer with nice formatting? This is what I am trying to see in a readable manner:
(["2020-01-02T12:00:00Z" {:total-precipitation 0.08385746509713285, :temperature 287.9938916973039}] ["2020-01-07T00:00:00Z" {:total-precipitation 0.09868490622908462, :temperature 289.68302887561276}] ["2020-01-25T18:00:00Z" {:total-precipitation 0.16854437338370903, :temperature 295.7740885416667}] ["2020-01-15T06:00:00Z" {:total-precipitation 0.12877143130582921, :temperature 288.2908193550858}] ["2020-01-12T00:00:00Z" {:total-precipitation 0.11650203847709824, :temperature 289.78164253982845}] ["2020-01-26T06:00:00Z" {:total-precipitation 0.17125286424861236, :temperature 288.5767415364583}] ["2019-12-31T06:00:00Z" {:total-precipitation 0.07543482708142084, :temperature 288.6598259420956}] ["2020-01-29T00:00:00Z" {:total-precipitation 0.18237000879119425, :temperature 290.36369293811276}] ["2019-12-19T18:00:00Z" {:total-precipitation 0.012206793018598474, :temperature 295.0340408624387}] ["2019-12-20T18:00:00Z" {:total-precipitation 0.01632653268547181, :temperature 295.13471296721815}] ["2020-01-27T18:00:00Z" {:total-precipitation 0.17602475075160756, :temperature 295.6355842141544}] ["2020-01-28T18:00:00Z" {:total-precipitation 0.18001714509491826, :temperature 295.7472091375613}])
You can always use C-u C-c C-p
(`C-u` means invoke the next command with a flag), it pprints to the same buffer
I just did a couple of tests and realized that when invoked from a .clj file the formatting works, while from a .cljs file no chance 😄
I haven't done enough clojurescript to help for that, but you should ask in the #cider channel
@lucio you need to be connected to a CLJS REPL in order to invoke from a .cljs file
I have a cljs repl on :) .. it’s just that I get the whole result in one line, when from a clj repl I get it nicely formatted @lilactown