   "Clojupyters nREPL handler."
   (apply nrepl-server/default-handler (map resolve clojupyter-middleware)))
 
-(defn start-nrepl 
+(defn start-nrepl
   "Start an nrepl server. Stop the existing one, if any (only possible when debugging)."
   []
   (when-let [server @the-nrepl]
     (nrepl-server/stop-server server))
   (reset! the-nrepl
-          (nrepl-server/start-server 
+          (nrepl-server/start-server
            :port (get-free-port!)
            :handler clojupyer-nrepl-handler))
   (set-session!))

            parent-header (:header message)]
        (swap! execution-count inc)
        (busy-handler message signer execution-count)
        (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_input"
                    (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
