##// END OF EJS Templates
Merge pull request #5826 from minrk/tour-error...
Min RK -
r16691:7c6cfbbd merge
parent child Browse files
Show More
@@ -57,7 +57,11 b' function (marked) {'
57 IPython.layout_manager = new IPython.LayoutManager();
57 IPython.layout_manager = new IPython.LayoutManager();
58 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
58 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
59 IPython.quick_help = new IPython.QuickHelp();
59 IPython.quick_help = new IPython.QuickHelp();
60 IPython.tour = new IPython.NotebookTour();
60 try {
61 IPython.tour = new IPython.NotebookTour();
62 } catch (e) {
63 console.log("Failed to instantiate Notebook Tour", e);
64 }
61 IPython.login_widget = new IPython.LoginWidget('span#login_widget', opts);
65 IPython.login_widget = new IPython.LoginWidget('span#login_widget', opts);
62 IPython.notebook = new IPython.Notebook('div#notebook', opts);
66 IPython.notebook = new IPython.Notebook('div#notebook', opts);
63 IPython.keyboard_manager = new IPython.KeyboardManager();
67 IPython.keyboard_manager = new IPython.KeyboardManager();
@@ -280,9 +280,13 b' var IPython = (function (IPython) {'
280 IPython.notebook.restart_kernel();
280 IPython.notebook.restart_kernel();
281 });
281 });
282 // Help
282 // Help
283 this.element.find('#notebook_tour').click(function () {
283 if (IPython.tour) {
284 IPython.tour.start();
284 this.element.find('#notebook_tour').click(function () {
285 });
285 IPython.tour.start();
286 });
287 } else {
288 this.element.find('#notebook_tour').addClass("disabled");
289 }
286 this.element.find('#keyboard_shortcuts').click(function () {
290 this.element.find('#keyboard_shortcuts').click(function () {
287 IPython.quick_help.show_keyboard_shortcuts();
291 IPython.quick_help.show_keyboard_shortcuts();
288 });
292 });
General Comments 0
You need to be logged in to leave comments. Login now