             parent-header (:header message)]
         (swap! execution-count inc)
         (busy-handler message signer execution-count)
-        (let [s# (new java.io.StringWriter) 
-              [output result] 
+        (let [s# (new java.io.StringWriter)
+              [output result]
               (binding [*out* s#]
                 (let [result (nrepl-eval (get-in message [:content :code]) transport)
                       output (str s#)]

          parent-header (:header message)]
      (send-message iopub-socket "status" (status-content "busy")
                    parent-header {} session-id signer)
      (send-message iopub-socket "execute-content"
                    (pyin-content @execution-count message)
                    parent-header {} session-id signer))))

(def nrepl-session (atom nil))

(defn set-session! 
  "All interaction will occur in one session; this sets atom nrepl-session to it."
  []
  (reset! nrepl-session
          (with-open [conn (repl/connect :port (:port @the-nrepl))]
            (-> (repl/client conn 10000) 
                (repl/message {:op :clone})
                doall
                repl/combine-responses

(ns ipython-clojure.core
  (:require
            [ipython-clojure.middleware.pprint]
            [ipython-clojure.middleware.stacktrace]
            [clojure.data.json :as json]
