You can fetch external Clojure dependencies using the clojupyter.misc.helper namespace.
(require '[clojupyter.misc.helper :as helper])
(helper/add-dependencies '[org.clojars.haifengl/smile "2.6.0"])
(in-ns 'smile.ai)
Load the Iris data and train a random forest model.
(import '[smile.data.formula Formula])
(let [iris (read-arff "../data/weka/iris.arff")
model (random-forest (Formula/lhs "class") iris)]
(.error model))