Skip to content

Commit

Permalink
using a different way to control datasets' print range
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed May 24, 2024
1 parent fc439af commit cdb4eb3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/scicloj/clay/v2/item.clj
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,11 @@

(defn dataset [{:as context
:keys [value kindly/options]}]
(let [{:keys [dataset/default-table-row-print-length]} options
printed-string (if default-table-row-print-length
(binding [tech.v3.dataset.print/*default-table-row-print-length* default-table-row-print-length]
(-> value
println
with-out-str))
(-> value
println
with-out-str))]
(-> printed-string
(let [{:keys [dataset/print-range]} options]
(-> value
(cond-> print-range
(tech.v3.dataset.print/print-range print-range))
println
with-out-str
md
(merge {:item-class "clay-dataset"}))))

0 comments on commit cdb4eb3

Please sign in to comment.