cider

Zach 2024-10-26T20:39:48.881259Z

Hello, I'm using tablecloth. Whenever I evaluate some data in a buffer with clojure code It shows me the first 3 rows of my table right below the line I evaluated. Can I bump this up to let's say 10?

oyakushev 2024-10-27T09:10:09.401689Z

For big outputs, it is optimal to use CIDER inspector, i.e. cider-inspect-last-exp. Would that serve your usecase better?

Zach 2024-10-28T04:20:05.641909Z

It could but it might need some tweaking in this case. Being able to integrate cider with https://github.com/techascent/tech.ml.dataset would be incredible.

Zach 2024-10-28T04:25:38.399309Z

There’s a function you can call on a dataset to convert it to a vector of maps (where each map is a row in the dataset). The cider inspect handles collections of maps nicely. Maybe it’s possible to have the inspector call that function before it tries to inspect a dataset?

Zach 2024-10-26T20:43:44.363949Z

For anyone else with the same issue, cider-pprint-eval-last-sexp is an alternative

oyakushev 2024-10-28T07:24:01.890429Z

https://clojuredocs.org/clojure.datafy/datafy exists precisely for this purpose. If tech.ml.dataset implents the datafy protocol, then it will automatically integrate with cider-inspector and other similar tools.

❤️ 1
Harold 2024-10-28T16:35:13.552219Z

Two functions you may be interested in: https://techascent.github.io/tech.ml.dataset/tech.v3.dataset.print.html#var-print-range print range lets you set the number of lines which print --- There's also this one: https://techascent.github.io/tech.ml.dataset/tech.v3.dataset.html#var-print-all Which conveniently sets the metadata on a dataset to print all rows