Jupyter(Lab) Cheatsheet

For more shortcuts for various Mods/functions, see documentation.


Command Description
Ctrl + Shift + p open command bar
Esc + F find and replace

Magics & Tricks

Command Description
?str.replace() prefix command with ? to show doc-strings
%%time Add as first line of cell to output the runtime of this cell
%timeit Add before a statement to measure the runtime of a statement
%prun Add before a function to get runtime and call count of all statements inside this function