Show More
@@ -83,11 +83,9 b' class SessionHandler(IPythonHandler):' | |||
|
83 | 83 | def patch(self, session_id): |
|
84 | 84 | # Currently, this handler is strictly for renaming notebooks |
|
85 | 85 | sm = self.session_manager |
|
86 | nbm = self.notebook_manager | |
|
87 | km = self.kernel_manager | |
|
88 | 86 | model = self.get_json_body() |
|
89 | 87 | if model is None: |
|
90 | raise HTTPError(400, "No JSON data provided") | |
|
88 | raise web.HTTPError(400, "No JSON data provided") | |
|
91 | 89 | changes = {} |
|
92 | 90 | if 'notebook' in model: |
|
93 | 91 | notebook = model['notebook'] |
@@ -104,7 +102,6 b' class SessionHandler(IPythonHandler):' | |||
|
104 | 102 | def delete(self, session_id): |
|
105 | 103 | # Deletes the session with given session_id |
|
106 | 104 | sm = self.session_manager |
|
107 | nbm = self.notebook_manager | |
|
108 | 105 | km = self.kernel_manager |
|
109 | 106 | session = sm.get_session(id=session_id) |
|
110 | 107 | sm.delete_session(session_id) |
@@ -16,15 +16,13 b' Authors:' | |||
|
16 | 16 | # Imports |
|
17 | 17 | #----------------------------------------------------------------------------- |
|
18 | 18 | |
|
19 | import os | |
|
20 | 19 | import uuid |
|
21 | 20 | import sqlite3 |
|
22 | 21 | |
|
23 | 22 | from tornado import web |
|
24 | 23 | |
|
25 | 24 | from IPython.config.configurable import LoggingConfigurable |
|
26 |
from IPython. |
|
|
27 | from IPython.utils.traitlets import List, Dict, Unicode, TraitError | |
|
25 | from IPython.utils.traitlets import TraitError | |
|
28 | 26 | |
|
29 | 27 | #----------------------------------------------------------------------------- |
|
30 | 28 | # Classes |
General Comments 0
You need to be logged in to leave comments.
Login now