diff --git a/README.md b/README.md index 6358dda..f41411f 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ The `:dev/repl` alias calls `org.corfield.dev.repl/start-repl` in the [`repl.clj * Optionally, starts a Socket REPL server (with the port selected via an environment variable, a JVM property, or a dot-file created on a previous run). * If both Portal and `org.clojure/tools.logging` are on the classpath, it patch `tools.logging` to also `tap>` every log message in a format that Portal understands and can display (usually with the ability to go to the file/line listed in the log entry); call `(dev/toggle-logging!)` to turn this `tap>`'ing on and off. -* If Portal 0.33.0 or later is on the classpath, use the Portal middleware with nREPL (if CIDER or nREPL are on the classpath). +* If Portal 0.33.0 or later is on the classpath, use the Portal middleware with nREPL (if CIDER or nREPL are on the classpath). If using Portal 0.40.0 or later, this also adds the [Portal Notebook middleware](https://cljdoc.org/d/djblue/portal/0.40.0/doc/editors/vs-code/clojure-notebooks#portalnreplwrap-notebook). * Starts [Figwheel Main](https://github.com/bhauman/figwheel-main), if present on the classpath, else * Starts [Rebel Readline](https://github.com/bhauman/rebel-readline), if present on the classpath, else * Starts a CIDER-enhanced [nREPL Server](https://nrepl.org/), if `cider-nrepl` is present on the classpath, else diff --git a/src/org/corfield/dev/repl.clj b/src/org/corfield/dev/repl.clj index 3566d63..2884d27 100644 --- a/src/org/corfield/dev/repl.clj +++ b/src/org/corfield/dev/repl.clj @@ -124,8 +124,9 @@ middleware (into [] (filter #(try (requiring-resolve (second %)) true (catch Throwable _))) - [["Portal" 'portal.nrepl/wrap-portal] - ["CIDER" 'cider.nrepl/cider-middleware]]) + [["Portal" 'portal.nrepl/wrap-portal] + ["Notebook" 'portal.nrepl/wrap-notebook] + ["CIDER" 'cider.nrepl/cider-middleware]]) mw-args (when (seq middleware) ["--middleware" (str (mapv second middleware))])