Show More
@@ -57,7 +57,11 b' function (marked) {' | |||
|
57 | 57 | IPython.layout_manager = new IPython.LayoutManager(); |
|
58 | 58 | IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter'); |
|
59 | 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 | 65 | IPython.login_widget = new IPython.LoginWidget('span#login_widget', opts); |
|
62 | 66 | IPython.notebook = new IPython.Notebook('div#notebook', opts); |
|
63 | 67 | IPython.keyboard_manager = new IPython.KeyboardManager(); |
@@ -280,9 +280,13 b' var IPython = (function (IPython) {' | |||
|
280 | 280 | IPython.notebook.restart_kernel(); |
|
281 | 281 | }); |
|
282 | 282 | // Help |
|
283 | this.element.find('#notebook_tour').click(function () { | |
|
284 | IPython.tour.start(); | |
|
285 | }); | |
|
283 | if (IPython.tour) { | |
|
284 | this.element.find('#notebook_tour').click(function () { | |
|
285 | IPython.tour.start(); | |
|
286 | }); | |
|
287 | } else { | |
|
288 | this.element.find('#notebook_tour').addClass("disabled"); | |
|
289 | } | |
|
286 | 290 | this.element.find('#keyboard_shortcuts').click(function () { |
|
287 | 291 | IPython.quick_help.show_keyboard_shortcuts(); |
|
288 | 292 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now