diff --git a/IPython/html/services/kernels/handlers.py b/IPython/html/services/kernels/handlers.py
index 5ce6e8e..eaa46b3 100644
--- a/IPython/html/services/kernels/handlers.py
+++ b/IPython/html/services/kernels/handlers.py
@@ -55,7 +55,7 @@ class KernelHandler(IPythonHandler):
@web.authenticated
def get(self, kernel_id):
km = self.kernel_manager
- model = km.kernel_model(kernel_id,self.ws_url)
+ model = km.kernel_model(kernel_id, self.ws_url)
self.finish(jsonapi.dumps(model))
@web.authenticated
@@ -76,7 +76,7 @@ class KernelActionHandler(IPythonHandler):
self.set_status(204)
if action == 'restart':
km.restart_kernel(kernel_id)
- model = km.kernel_model(kernel_id,self.ws_url)
+ model = km.kernel_model(kernel_id, self.ws_url)
self.set_header('Location', '{0}api/kernels/{1}'.format(self.base_kernel_url, kernel_id))
self.write(jsonapi.dumps(model))
self.finish()
diff --git a/IPython/html/services/sessions/handlers.py b/IPython/html/services/sessions/handlers.py
index 76338cd..a292272 100644
--- a/IPython/html/services/sessions/handlers.py
+++ b/IPython/html/services/sessions/handlers.py
@@ -31,8 +31,7 @@ from ...base.handlers import IPythonHandler, authenticate_unless_readonly
class SessionRootHandler(IPythonHandler):
-
-
+
@authenticate_unless_readonly
def get(self):
sm = self.session_manager
@@ -40,8 +39,7 @@ class SessionRootHandler(IPythonHandler):
km = self.kernel_manager
sessions = sm.list_sessions()
self.finish(jsonapi.dumps(sessions))
-
-
+
@web.authenticated
def post(self):
sm = self.session_manager
@@ -55,18 +53,17 @@ class SessionRootHandler(IPythonHandler):
kernel = km.kernel_model(kernel_id, self.ws_url)
model = sm.session_model(session_id, notebook_name, path, kernel)
self.finish(jsonapi.dumps(model))
-
-
+
class SessionHandler(IPythonHandler):
-
+
SUPPORTED_METHODS = ('GET', 'PATCH', 'DELETE')
-
+
@authenticate_unless_readonly
def get(self, session_id):
sm = self.session_manager
model = sm.get_session_from_id(session_id)
self.finish(jsonapi.dumps(model))
-
+
@web.authenticated
def patch(self, session_id):
sm = self.session_manager
@@ -79,7 +76,7 @@ class SessionHandler(IPythonHandler):
sm.delete_mapping_for_session(session_id)
model = sm.session_model(session_id, notebook_name, path, kernel)
self.finish(jsonapi.dumps(model))
-
+
@web.authenticated
def delete(self, session_id):
sm = self.session_manager
@@ -90,7 +87,7 @@ class SessionHandler(IPythonHandler):
sm.delete_mapping_for_session(session_id)
self.set_status(204)
self.finish()
-
+
#-----------------------------------------------------------------------------
# URL to handler mappings
diff --git a/IPython/html/static/services/sessions/js/session.js b/IPython/html/static/services/sessions/js/session.js
index 1f86402..839504f 100644
--- a/IPython/html/static/services/sessions/js/session.js
+++ b/IPython/html/static/services/sessions/js/session.js
@@ -32,7 +32,6 @@ var IPython = (function (IPython) {
Session.prototype.notebook_rename = function (notebook_path) {
this.notebook_path = notebook_path;
- console.log("TEST");
var settings = {
processData : false,
cache : false,