A few Jupyter keyboard shortcuts and magic commands that help me stay productive.
- To run a cell:
Shift + enterorctrl + enter. - Jupyter notebooks also offer tab completion.
- You can get documentation within
jupyter-notebookby hittingshift + tabthree times, or by adding?at the end of the function to get its docs. Mformarkdownmode andYfor command mode.%envprints environment variables.%pdbactivates thepdbdebugger.%pylablets you work interactively withnumpyandmatplotlib.%%debugactivates debugging mode in a cell.%%htmlrenders a cell as HTML.%%latexrenders a cell as LaTeX.%%shruns a shell script.%%timetimes how long a command takes to run.
These are my personal favorites for jupyter-notebook.