by Martin KavalarNov 23 2018
Making science reproducible @nextjournal

Clojure prepl + addlib

The following deps.edn is mounted into the Clojure runtime. This is using Clojure 1.10.0-beta8 , the prepl protocol and add-lib.

 {org.clojure/clojure {:mvn/version "1.10.0-beta8"}
  {:git/url ""
   :sha "f6c080bd0049211021ea59e516d1785b08302515"}}}}
Extensible Data Notation

Let's start by using add-lib and returning the clojure-version.

(use '

We can use add-lib to add depedencies at runtime:

(add-lib 'org.clojure/core.async {:mvn/version "0.4.490"})

Once core.async is downloaded, we can require it.

(require '[clojure.core.async :as async])

And use it.

(async/timeout 100)

Happy hacking! 🎉