Show More
@@ -2,11 +2,9 b'' | |||
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | ||
|
5 | import json | |
|
6 | 6 | from tornado import web |
|
7 | 7 | |
|
8 | from zmq.utils import jsonapi | |
|
9 | ||
|
10 | 8 | from ...base.handlers import IPythonHandler, json_errors |
|
11 | 9 | |
|
12 | 10 | |
@@ -24,7 +22,7 b' class MainKernelSpecHandler(IPythonHandler):' | |||
|
24 | 22 | results.append(d) |
|
25 | 23 | |
|
26 | 24 | self.set_header("Content-Type", 'application/json') |
|
27 |
self.finish(json |
|
|
25 | self.finish(json.dumps(results)) | |
|
28 | 26 | |
|
29 | 27 | |
|
30 | 28 | class KernelSpecHandler(IPythonHandler): |
General Comments 0
You need to be logged in to leave comments.
Login now