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