From f3ce2fc66b7cefb7b61915e9668f3c6c47e38fa4 Mon Sep 17 00:00:00 2001 From: John Miller Date: Fri, 14 Nov 2014 14:49:37 -0600 Subject: [PATCH] Missed condition to save display_data Some additional conditional code to save images embedded in notebooks using nbformat v4. --- lisp/ein-cell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ein-cell.el b/lisp/ein-cell.el index 1628fb2..98f4065 100644 --- a/lisp/ein-cell.el +++ b/lisp/ein-cell.el @@ -995,7 +995,8 @@ prettified text thus be used instead of HTML type." ((equal prop :stream) (progn (push value new-output) (push :name new-output))) - ((ein:output-property-p prop) + ((and (equal otype "display_data") + (ein:output-property-p prop)) (let ((new-prop (cdr (ein:output-property-p prop)))) (push (list new-prop (list value)) new-output) (push :data new-output)))