Show More
@@ -264,7 +264,7 b' class ZMQTerminalInteractiveShell(TerminalInteractiveShell):' | |||||
264 | def handle_image_PIL(self, data, mime): |
|
264 | def handle_image_PIL(self, data, mime): | |
265 | if mime not in ('image/png', 'image/jpeg'): |
|
265 | if mime not in ('image/png', 'image/jpeg'): | |
266 | return |
|
266 | return | |
267 | import PIL |
|
267 | import PIL.Image | |
268 | raw = base64.decodestring(data[mime].encode('ascii')) |
|
268 | raw = base64.decodestring(data[mime].encode('ascii')) | |
269 | img = PIL.Image.open(BytesIO(raw)) |
|
269 | img = PIL.Image.open(BytesIO(raw)) | |
270 | img.show() |
|
270 | img.show() |
General Comments 0
You need to be logged in to leave comments.
Login now