I was following examples on https://clojure.org/guides/repl/data_visualization_at_the_repl.
user=> (insp/inspect-table (mapv number-summary [2 5 6 28 42]))
#object[javax.swing.JFrame 0x61dde151 "javax.swing.JFrame[frame1,0,0,400x600,layout=java.awt.BorderLayout,title=Clojure Inspector,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,25,390x570,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]"]
This results in a blank white window, but it should show a table in a white window. I installed dev-java/openjdk-bin-25.0.1_p8 on gentoo linux and clj through brew-install's clojure-tools-1.12.4.1602. openjdk-bin is a binary package.It has been a while, but last I played with it swing had issues with wayland, I think particularly with multi monitor systems
@daslu - relevant to your interests:
user> (def _ (add-lib 'org.scicloj/noj))
#'user/_
user> (defn number-summary
"Computes a summary of the arithmetic properties of a number, as a data structure."
[n]
(let [proper-divisors (into (sorted-set)
(filter
(fn [d]
(zero? (rem n d)))
(range 1 n)))
divisors-sum (apply + proper-divisors)]
{:n n
:proper-divisors proper-divisors
:even? (even? n)
:prime? (= proper-divisors #{1})
:perfect-number? (= divisors-sum n)}))
#'user/number-summary
user> (require '[tech.v3.dataset :as ds])
nil
user> (->> (mapv number-summary [5 6 7 12 28 42])
(ds/->>dataset))
_unnamed [6 5]:
| :n | :proper-divisors | :even? | :prime? | :perfect-number? |
|---:|--------------------|--------|---------|------------------|
| 5 | #{1} | false | true | false |
| 6 | #{1 2 3} | true | false | true |
| 7 | #{1} | false | true | false |
| 12 | #{1 2 3 4 6} | true | false | false |
| 28 | #{1 2 4 7 14} | true | false | true |
| 42 | #{1 2 3 6 7 14 21} | true | false | false |
user> (require '[scicloj.clay.v2.api :as clay])
Clay loading...
nil
user> (clay/make! {:single-form '(->> (mapv number-summary [5 6 7 12 28 42])
(ds/->>dataset))})
Clay make started: #{nil}
Clay: Evaluated in 0.001 seconds
Clay: [:wrote docs/.clay.html #inst "2026-02-26T04:36:17.321-00:00"]
{:url " ",
:key "clay",
:title "Clay",
:display :editor,
:reveal false,
:info [[[[:wrote "docs/.clay.html"] nil nil] nil]]}
user>
https://github.com/swaywm/sway/wiki#issues-with-java-applications maybe something to try as well
I also use sway. env _JAVA_AWT_WM_NONREPARENTING=1 clj works around the issue.