diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index 38c8627..d84c603 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -57,7 +57,11 @@ function (marked) { IPython.layout_manager = new IPython.LayoutManager(); IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter'); IPython.quick_help = new IPython.QuickHelp(); - IPython.tour = new IPython.NotebookTour(); + try { + IPython.tour = new IPython.NotebookTour(); + } catch (e) { + console.log("Failed to instantiate Notebook Tour", e); + } IPython.login_widget = new IPython.LoginWidget('span#login_widget', opts); IPython.notebook = new IPython.Notebook('div#notebook', opts); IPython.keyboard_manager = new IPython.KeyboardManager(); diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index 7e496b6..04c88e2 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -280,9 +280,13 @@ var IPython = (function (IPython) { IPython.notebook.restart_kernel(); }); // Help - this.element.find('#notebook_tour').click(function () { - IPython.tour.start(); - }); + if (IPython.tour) { + this.element.find('#notebook_tour').click(function () { + IPython.tour.start(); + }); + } else { + this.element.find('#notebook_tour').addClass("disabled"); + } this.element.find('#keyboard_shortcuts').click(function () { IPython.quick_help.show_keyboard_shortcuts(); });