From ba7a3ec6bc916fbcac026785e424eef5947ae763 Mon Sep 17 00:00:00 2001 From: Raffaele De Feo Date: Sun, 13 Apr 2014 11:30:18 +0200 Subject: [PATCH] Make sure that celltoolbars are hidden when a notebook without "celltoolbar" entry in metadata is loaded. --- IPython/html/static/notebook/js/notebook.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index e9f7a78de..9983dbb03 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -2103,6 +2103,8 @@ var IPython = (function (IPython) { if (this.metadata.celltoolbar) { IPython.CellToolbar.global_show(); IPython.CellToolbar.activate_preset(this.metadata.celltoolbar); + } else { + IPython.CellToolbar.global_hide(); } // now that we're fully loaded, it is safe to restore save functionality