Show More
@@ -219,6 +219,33 b' var IPython = (function (IPython) {' | |||||
219 | this.element.find('#run_all_cells_below').click(function () { |
|
219 | this.element.find('#run_all_cells_below').click(function () { | |
220 | IPython.notebook.execute_cells_below(); |
|
220 | IPython.notebook.execute_cells_below(); | |
221 | }); |
|
221 | }); | |
|
222 | this.element.find('#to_code').click(function () { | |||
|
223 | IPython.notebook.to_code(); | |||
|
224 | }); | |||
|
225 | this.element.find('#to_markdown').click(function () { | |||
|
226 | IPython.notebook.to_markdown(); | |||
|
227 | }); | |||
|
228 | this.element.find('#to_raw').click(function () { | |||
|
229 | IPython.notebook.to_raw(); | |||
|
230 | }); | |||
|
231 | this.element.find('#to_heading1').click(function () { | |||
|
232 | IPython.notebook.to_heading(undefined, 1); | |||
|
233 | }); | |||
|
234 | this.element.find('#to_heading2').click(function () { | |||
|
235 | IPython.notebook.to_heading(undefined, 2); | |||
|
236 | }); | |||
|
237 | this.element.find('#to_heading3').click(function () { | |||
|
238 | IPython.notebook.to_heading(undefined, 3); | |||
|
239 | }); | |||
|
240 | this.element.find('#to_heading4').click(function () { | |||
|
241 | IPython.notebook.to_heading(undefined, 4); | |||
|
242 | }); | |||
|
243 | this.element.find('#to_heading5').click(function () { | |||
|
244 | IPython.notebook.to_heading(undefined, 5); | |||
|
245 | }); | |||
|
246 | this.element.find('#to_heading6').click(function () { | |||
|
247 | IPython.notebook.to_heading(undefined, 6); | |||
|
248 | }); | |||
222 | this.element.find('#collapse_current_output').click(function () { |
|
249 | this.element.find('#collapse_current_output').click(function () { | |
223 | IPython.notebook.collapse_output(); |
|
250 | IPython.notebook.collapse_output(); | |
224 | }); |
|
251 | }); | |
@@ -243,6 +270,13 b' var IPython = (function (IPython) {' | |||||
243 | this.element.find('#clear_all_output').click(function () { |
|
270 | this.element.find('#clear_all_output').click(function () { | |
244 | IPython.notebook.clear_all_output(); |
|
271 | IPython.notebook.clear_all_output(); | |
245 | }); |
|
272 | }); | |
|
273 | // Kernel | |||
|
274 | this.element.find('#int_kernel').click(function () { | |||
|
275 | IPython.notebook.session.interrupt_kernel(); | |||
|
276 | }); | |||
|
277 | this.element.find('#restart_kernel').click(function () { | |||
|
278 | IPython.notebook.restart_kernel(); | |||
|
279 | }); | |||
246 | // Help |
|
280 | // Help | |
247 | this.element.find('#keyboard_shortcuts').click(function () { |
|
281 | this.element.find('#keyboard_shortcuts').click(function () { | |
248 | IPython.quick_help.show_keyboard_shortcuts(); |
|
282 | IPython.quick_help.show_keyboard_shortcuts(); |
@@ -148,6 +148,28 b' class="notebook_app"' | |||||
148 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> |
|
148 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> | |
149 | <a href="#">Run All Below</a></li> |
|
149 | <a href="#">Run All Below</a></li> | |
150 | <li class="divider"></li> |
|
150 | <li class="divider"></li> | |
|
151 | <li id="change_cell_type" class="dropdown-submenu" | |||
|
152 | title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> | |||
|
153 | <a href="#">Cell Type</a> | |||
|
154 | <ul class="dropdown-menu"> | |||
|
155 | <li id="to_code" | |||
|
156 | title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> | |||
|
157 | <a href="#">Code</a></li> | |||
|
158 | <li id="to_markdown" | |||
|
159 | title="Contents will be rendered as HTML and serve as explanatory text"> | |||
|
160 | <a href="#">Markdown</a></li> | |||
|
161 | <li id="to_raw" | |||
|
162 | title="Contents will pass through nbconvert unmodified"> | |||
|
163 | <a href="#">Raw NBConvert</a></li> | |||
|
164 | <li id="to_heading1"><a href="#">Heading 1</a></li> | |||
|
165 | <li id="to_heading2"><a href="#">Heading 2</a></li> | |||
|
166 | <li id="to_heading3"><a href="#">Heading 3</a></li> | |||
|
167 | <li id="to_heading4"><a href="#">Heading 4</a></li> | |||
|
168 | <li id="to_heading5"><a href="#">Heading 5</a></li> | |||
|
169 | <li id="to_heading6"><a href="#">Heading 6</a></li> | |||
|
170 | </ul> | |||
|
171 | </li> | |||
|
172 | <li class="divider"></li> | |||
151 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> |
|
173 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> | |
152 | <ul class="dropdown-menu"> |
|
174 | <ul class="dropdown-menu"> | |
153 | <li id="collapse_current_output"><a href="#">Collapse</a></li> |
|
175 | <li id="collapse_current_output"><a href="#">Collapse</a></li> | |
@@ -172,6 +194,16 b' class="notebook_app"' | |||||
172 | </li> |
|
194 | </li> | |
173 | </ul> |
|
195 | </ul> | |
174 | </li> |
|
196 | </li> | |
|
197 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> | |||
|
198 | <ul class="dropdown-menu"> | |||
|
199 | <li id="int_kernel" | |||
|
200 | title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> | |||
|
201 | <a href="#">Interrupt</a></li> | |||
|
202 | <li id="restart_kernel" | |||
|
203 | title="Restart the Kernel"> | |||
|
204 | <a href="#">Restart</a></li> | |||
|
205 | </ul> | |||
|
206 | </li> | |||
175 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> |
|
207 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> | |
176 | <ul class="dropdown-menu" title="Opens in a new window"> |
|
208 | <ul class="dropdown-menu" title="Opens in a new window"> | |
177 | <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li> |
|
209 | <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li> |
General Comments 0
You need to be logged in to leave comments.
Login now