mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Make sure that celltoolbars are hidden
when a notebook without "celltoolbar" entry in metadata is loaded.
This commit is contained in:
parent
61bdcb477b
commit
ba7a3ec6bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user