From a5218e0caef6ac71aa2b65b51e8125d4b3c753f1 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 29 Jan 2015 15:33:23 -0800 Subject: [PATCH] fix initial collapsed state on load OutputArea.collapsed should only be assigned inside expand/collapse methods setting `collapsed = false` when it actually is collapsed prevents expand from having any effect, resulting in apparently invisible output. --- IPython/html/static/notebook/js/outputarea.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index cb8d7b391..2b3e9bfc3 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -908,9 +908,10 @@ define([ this.append_output(outputs[i]); } if (metadata.collapsed !== undefined) { - this.collapsed = metadata.collapsed; if (metadata.collapsed) { this.collapse(); + } else { + this.expand(); } } if (metadata.scrolled !== undefined) {