Skip to content
Browse files

Tweak the styling in the history, delete extraneous print in kernelma…

…nager
  • Loading branch information...
1 parent cce11cd commit efbcf105c5409ea3d6a691eefefa63963809a6d0 @jamesgao committed
Showing with 6 additions and 7 deletions.
  1. +6 −6 IPython/frontend/html/js/ui.js
  2. +0 −1 IPython/frontend/html/kernelmanager.py
View
12 IPython/frontend/html/js/ui.js
@@ -24,17 +24,17 @@ StatusBar.prototype.set = function(status) {
function History(obj) {
this.obj = $("#"+obj)
this.history = []
+// History retrieval breaks the kernel still!
// gethistory(-1)
}
History.prototype.append = function(hist) {
for (var i in hist) {
this.history.push(hist[i])
- var obj = $(document.createElement("a"))
- obj.addClass("history_element")
- obj.attr("href", "javascript:kernhistory.click("+(this.history.length-1)+")")
- var code = hist[i].replace(/\n/g, "<br />")
- obj.html("["+i+"]: "+code)
- this.obj.append(obj)
+ var link = $(document.createElement("a"))
+ link.attr("href", "javascript:kernhistory.click("+(this.history.length-1)+")")
+ link.html(hist[i].replace(/\n/g, "<br />"))
+ var obj = $(document.createElement("div")).addClass("item")
+ this.obj.append(obj.html("["+i+"]: ").append(link))
}
this.obj.scrollTo(this.obj.children().last())
}
View
1 IPython/frontend/html/kernelmanager.py
@@ -35,7 +35,6 @@ def append(self, msg):
dead_for = time.time() - self.clients[i][0]
#Remove client if no heartbeat, otherwise add to its queue
if dead_for > client_death:
- print "Removing client %s: dead for %f"%(i, dead_for)
del self.clients[i]
else:
self.clients[i][1].put(msg)

0 comments on commit efbcf10

Please sign in to comment.
Something went wrong with that request. Please try again.