diff --git a/notebooks/md-table-tests-v1.ipynb b/notebooks/md-table-tests-v1.ipynb index 1a17079bc..e1fe23158 100644 --- a/notebooks/md-table-tests-v1.ipynb +++ b/notebooks/md-table-tests-v1.ipynb @@ -1,5 +1,18 @@ { "cells": [ + { + "cell_type": "markdown", + "id": "eec14d4a-3c89-4e2a-a539-6b73fcdec35e", + "metadata": {}, + "source": [ + "### Table with uneven number of \"|\"\n", + "\n", + " |col1 | col 2 | col 3 |\n", + " -- | --- | --- \n", + "col1 | col 2 | col 3|\n", + "\n" + ] + }, { "cell_type": "markdown", "id": "bf9611b0-d80b-46db-8f01-93d3ece44ba9", @@ -7,9 +20,9 @@ "source": [ "Bold header without empty line\n", "**Table 1.**\n", - "|col1|col2|\n", - "|---|---|\n", - "|a|b|" + "|col1|col2|new-col3|\n", + "|---|---|---|\n", + "|a-modififed|deleted|added|" ] }, { @@ -17,11 +30,7 @@ "id": "41fc3148-f1e6-4baa-b03c-c4c55096673d", "metadata": {}, "source": [ - "Normal header without empty line\n", - "Table 1\n", - "|col1|col2|\n", - "|---|---|\n", - "|a|b|" + "Normal header without empty line(deleted)" ] }, { @@ -34,13 +43,55 @@ "\n", "|col1|col2|\n", "|---|---|\n", - "|a|b|" + "|a|b|\n", + "\n", + "**Table 2 added.**\n", + "| Keystroke | Action |\n", + "|-----------------------------------|--------------------------------------------|\n", + "| ``Ctrl-a-modified`` | Move v2 cursor to the beginning of the line|\n", + "| ``Ctrl-e`` | Move cursor to the end of the line |\n", + "| ``Ctrl-b`` or the left arrow key | Move cursor back one character |\n", + "| ``Ctrl-f`` or the right arrow key | Move cursor forward one character |\n" + ] + }, + { + "cell_type": "markdown", + "id": "e7349595-bb7a-4a5b-96db-639bfe89c002", + "metadata": {}, + "source": [ + "| Command | Description |\n", + "|-----------------|-------------------------------------------------------------|\n", + "| ``list`` | Show the current location in the file |\n", + "| ``h(elp)`` | Show a list of commands, or find help on a specific command |\n", + "| ``q(uit)`` | Quit the debugger and the program |\n", + "| ``c(ontinue)`` | Quit the debugger, continue in the program |\n", + "| ``n(ext)`` | Go to the next step of the program |\n", + "| ```` | Repeat the previous command |\n", + "| ``p(rint)`` | Print variables |\n", + "| ``s(tep)`` | Step into a subroutine |\n", + "| ``r(eturn)`` | Return out of a subroutine |" + ] + }, + { + "cell_type": "markdown", + "id": "3d7f2171-0271-4432-a8d5-ca75fc4b3ce1", + "metadata": {}, + "source": [ + "## Miscellaneous Shortcuts\n", + "Finally, there are a few miscellaneous shortcuts that don't fit into any of the preceding categories, but are nevertheless useful to know:\n", + "| Keystroke | Action |\n", + "|-------------------------------|--------------------------------------------|\n", + "| ``Cmd-ab`` | undo terminal screen |\n", + "| ``Ctrl-c`` | Interrupt current Python command |\n", + "| ``Ctrl-d`` | Exit IPython session |\n", + "\n", + "The Ctrl-c in particular can be useful when you inadvertently start a very long-running job." ] }, { "cell_type": "code", "execution_count": null, - "id": "84634040-96f5-4028-b6e1-a5269f9d4dbf", + "id": "9489fa58-582c-4bd9-8e08-27402adcdd80", "metadata": {}, "outputs": [], "source": []