i tried but do not see the value within the atom changing in the window:
user=> (require '[vlaaad.reveal.prepl :as vrp])
nil
user=> (in-ns 'vlaaad.reveal.prepl)
#object[clojure.lang.Namespace 0x28aabfc "vlaaad.reveal.prepl"]
vlaaad.reveal.prepl=> (-main)
Clojure 1.10.1
vlaaad.reveal.prepl=> (def fun (atom nil))
#'user/fun
user=> (reset! fun 3)
3
user=>
may be i am doing something wrong?fwiw:
$ java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-jvmci-19.3-b06)
OpenJDK 64-Bit Server VM (build 11.0.5+10-jvmci-19.3-b06, mixed mode)
It seems you are watching var #'user/fun instead of atom in user/fun
@sogaiu watching a var will show updates when you do (def fun something)
@vlaaad ah, yes, that was it! tyvm 🙂