Show More
@@ -351,31 +351,30 b' afresh.' | |||||
351 |
|
351 | |||
352 | Keyboard shortcuts |
|
352 | Keyboard shortcuts | |
353 | ~~~~~~~~~~~~~~~~~~ |
|
353 | ~~~~~~~~~~~~~~~~~~ | |
354 |
All actions in the notebook can be |
|
354 | All actions in the notebook can be performed with the mouse, but keyboard | |
355 |
shortcuts are also available for the most common ones |
|
355 | shortcuts are also available for the most common ones. The essential shortcuts | |
356 | of the notebook can be achieved with minimal mouse usage. The main shortcuts |
|
|||
357 | to remember are the following: |
|
356 | to remember are the following: | |
358 |
|
357 | |||
359 | * :kbd:`Shift-Enter`: |
|
358 | * :kbd:`Shift-Enter`: run cell | |
360 |
|
||||
361 | Execute the current cell, show output (if any), and jump to the next cell |
|
359 | Execute the current cell, show output (if any), and jump to the next cell | |
362 | below. If :kbd:`Shift-Enter` is invoked on the last input cell, a new code |
|
360 | below. If :kbd:`Shift-Enter` is invoked on the last input cell, a new code | |
363 | cell will also be created. Note that in the notebook, typing :kbd:`Enter` |
|
361 | cell will also be created. Note that in the notebook, typing :kbd:`Enter` | |
364 | on its own *never* forces execution, but rather just inserts a new line in |
|
362 | on its own *never* forces execution, but rather just inserts a new line in | |
365 | the current input cell. In the Notebook it is thus always necessary to use |
|
363 | the current input cell. :kbd:`Shift-Enter` is equivalent to clicking the | |
366 | :kbd:`Shift-Enter` to execute the cell (or use the ``Cell | Run`` menu |
|
364 | ``Cell | Run`` menu item. | |
367 | item). |
|
|||
368 |
|
365 | |||
369 | * :kbd:`Ctrl-Enter`: |
|
366 | * :kbd:`Ctrl-Enter`: run cell in-place | |
370 | Execute the current cell as if it were in "terminal mode", where any |
|
367 | Execute the current cell as if it were in "terminal mode", where any | |
371 |
output is shown, but the cursor *remains* in the current cell. Th |
|
368 | output is shown, but the cursor *remains* in the current cell. The cell's | |
372 | convenient for doing quick experiments in place, or for querying things |
|
369 | entire contents are selected after execution, so you can just start typing | |
373 | like filesystem content, without needing to create additional cells that |
|
370 | and only the new input will be in the cell. This is convenient for doing | |
374 | you may not want to be saved in the notebook. |
|
371 | quick experiments in place, or for querying things like filesystem | |
375 |
|
372 | content, without needing to create additional cells that you may not want | ||
376 | * :kbd:`Alt-Enter`: |
|
373 | to be saved in the notebook. | |
|
374 | ||||
|
375 | * :kbd:`Alt-Enter`: run cell, insert below | |||
377 | Executes the current cell, shows the output, and inserts a *new* input |
|
376 | Executes the current cell, shows the output, and inserts a *new* input | |
378 |
cell between the current cell and the |
|
377 | cell between the current cell and the cell below (if one exists). This | |
379 | is thus a shortcut for the sequence :kbd:`Shift-Enter`, :kbd:`Ctrl-m a`. |
|
378 | is thus a shortcut for the sequence :kbd:`Shift-Enter`, :kbd:`Ctrl-m a`. | |
380 | (:kbd:`Ctrl-m a` adds a new cell above the current one.) |
|
379 | (:kbd:`Ctrl-m a` adds a new cell above the current one.) | |
381 |
|
380 | |||
@@ -384,6 +383,46 b' to remember are the following:' | |||||
384 | followed by a single letter or character. For example, if you type |
|
383 | followed by a single letter or character. For example, if you type | |
385 | :kbd:`Ctrl-m h` (that is, the sole letter :kbd:`h` after :kbd:`Ctrl-m`), |
|
384 | :kbd:`Ctrl-m h` (that is, the sole letter :kbd:`h` after :kbd:`Ctrl-m`), | |
386 | IPython will show you all the available keyboard shortcuts. |
|
385 | IPython will show you all the available keyboard shortcuts. | |
|
386 | ||||
|
387 | ||||
|
388 | .. | |||
|
389 | TODO: these live in IPython/html/static/notebook/js/quickhelp.js | |||
|
390 | They were last updated for IPython 1.0 release, so update them again for | |||
|
391 | future releases. | |||
|
392 | ||||
|
393 | Here is the complete set of keyboard shortcuts available: | |||
|
394 | ||||
|
395 | ============ ========================== | |||
|
396 | **Shortcut** **Action** | |||
|
397 | ------------ -------------------------- | |||
|
398 | Shift-Enter run cell | |||
|
399 | Ctrl-Enter run cell in-place | |||
|
400 | Alt-Enter run cell, insert below | |||
|
401 | Ctrl-m x cut cell | |||
|
402 | Ctrl-m c copy cell | |||
|
403 | Ctrl-m v paste cell | |||
|
404 | Ctrl-m d delete cell | |||
|
405 | Ctrl-m z undo last cell deletion | |||
|
406 | Ctrl-m - split cell | |||
|
407 | Ctrl-m a insert cell above | |||
|
408 | Ctrl-m b insert cell below | |||
|
409 | Ctrl-m o toggle output | |||
|
410 | Ctrl-m O toggle output scroll | |||
|
411 | Ctrl-m l toggle line numbers | |||
|
412 | Ctrl-m s save notebook | |||
|
413 | Ctrl-m j move cell down | |||
|
414 | Ctrl-m k move cell up | |||
|
415 | Ctrl-m y code cell | |||
|
416 | Ctrl-m m markdown cell | |||
|
417 | Ctrl-m t raw cell | |||
|
418 | Ctrl-m 1-6 heading 1-6 cell | |||
|
419 | Ctrl-m p select previous | |||
|
420 | Ctrl-m n select next | |||
|
421 | Ctrl-m i interrupt kernel | |||
|
422 | Ctrl-m . restart kernel | |||
|
423 | Ctrl-m h show keyboard shortcuts | |||
|
424 | ============ ========================== | |||
|
425 | ||||
387 |
|
426 | |||
388 |
|
427 | |||
389 | Magic commands |
|
428 | Magic commands |
General Comments 0
You need to be logged in to leave comments.
Login now