We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bccd908 + 7144c90 commit 640a7d5Copy full SHA for 640a7d5
src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js
@@ -56,6 +56,11 @@
56
*/
57
var read_config = function () {
58
var cfg = default_cfg;
59
+
60
+ if (!liveNotebook) {
61
+ return cfg;
62
+ }
63
64
// config may be specified at system level or at document level.
65
// first, update defaults with config loaded from server
66
$.extend(true, cfg, IPython.notebook.config.data.toc2);
@@ -643,7 +648,7 @@
643
648
});
644
649
645
650
// update navigation menu
646
- if (cfg.navigate_menu) {
651
+ if (cfg.navigate_menu && liveNotebook) {
647
652
var pop_nav = function() { //callback for create_nav_menu
653
$('#navigate_menu').empty().append($('#toc > .toc-item').clone());
654
}
0 commit comments