Show More
@@ -89,6 +89,13 var tour_steps = [ | |||||
89 | onShow: function(tour) { $([IPython.events]).trigger('status_busy.Kernel'); }, |
|
89 | onShow: function(tour) { $([IPython.events]).trigger('status_busy.Kernel'); }, | |
90 | onHide: function(tour) { $([IPython.events]).trigger('status_idle.Kernel');}, |
|
90 | onHide: function(tour) { $([IPython.events]).trigger('status_idle.Kernel');}, | |
91 | content: "The Kernel indicator looks like this when the Kernel is busy.", |
|
91 | content: "The Kernel indicator looks like this when the Kernel is busy.", | |
|
92 | }, { | |||
|
93 | element: "#kernel_indicator", | |||
|
94 | title: "Fin.", | |||
|
95 | placement: 'bottom', | |||
|
96 | onShow: function(tour) { $([IPython.events]).trigger('status_busy.Kernel'); }, | |||
|
97 | onHide: function(tour) { $([IPython.events]).trigger('status_idle.Kernel');}, | |||
|
98 | content: "This concludes the IPython Notebook User Interface Tour. Happy hacking!", | |||
92 | } |
|
99 | } | |
93 | ]; |
|
100 | ]; | |
94 |
|
101 | |||
@@ -112,12 +119,16 IPython = (function (IPython) { | |||||
112 | onStart: function() { console.log('tour started'); }, |
|
119 | onStart: function() { console.log('tour started'); }, | |
113 | steps: this.tour_steps, |
|
120 | steps: this.tour_steps, | |
114 | }); |
|
121 | }); | |
|
122 | this.tour.init(); | |||
115 | }; |
|
123 | }; | |
116 |
|
124 | |||
117 | NotebookTour.prototype.start = function () { |
|
125 | NotebookTour.prototype.start = function () { | |
118 | console.log("let's start the tour"); |
|
126 | console.log("let's start the tour"); | |
119 | this.tour.init(); |
|
|||
120 | this.tour.start(); |
|
127 | this.tour.start(); | |
|
128 | if (this.tour.ended()) | |||
|
129 | { | |||
|
130 | this.tour.restart(); | |||
|
131 | } | |||
121 | }; |
|
132 | }; | |
122 |
|
133 | |||
123 | // Set module variables |
|
134 | // Set module variables |
General Comments 0
You need to be logged in to leave comments.
Login now