           max-name (apply max (map count (map :name clean)))]
       (str (format "%s (%s)\n\n" (:message msg) (:class msg))
            (apply str
-                  (map #(format (str "%" max-file "s: %5d %-" max-name "s  \n") 
-                                (:file %) (:line %) (:name %)) 
+                  (map #(format (str "%" max-file "s: %5d %-" max-name "s  \n")
+                                (:file %) (:line %) (:name %))
 
                        clean))))))
 
 (defn nrepl-eval
   "Send message to nrepl and process response."
-  [code transport] 
-  (let [result (-> (repl/client transport 3000) ; timeout=3sec. 
+  [code transport]
+  (let [result (-> (repl/client transport 3000) ; timeout=3sec.
                    (repl/message {:op :eval :session @nrepl-session :code code})
                    repl/combine-responses)]
-    (cond (empty? result) "Clojure: Unbalanced parentheses or kernel timed-out while processing form.", 
+    (cond (empty? result) "Clojure: Unbalanced parentheses or kernel timed-out while processing form.",
           (seq (:ex result)) (stacktrace-string (request-trace transport))
           :else (if-let [vals (:value result)]
                   (apply str (interpose " " vals)) ; could have sent multiple forms

          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

            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#)]
