Jupyter Notebook Shortcuts
Command Mode (press Esc to enable) O : toggle output of selected cells
F : find and replace Shift-O : toggle output scrolling of selected cells
Ctrl-Shift-P : open the command palette H : show keyboard shortcuts
Enter : enter edit mode I , I : interrupt kernel
Shift-Enter : run cell, select below 0 , 0 : restart the kernel (with dialog)
Ctrl-Enter : run selected cells Esc : close the pager
Alt-Enter : run cell, insert below Q : close the pager
Y : to code Shift-Space : scroll notebook up
M : to markdown Space : scroll notebook down
R : to raw
1 : to heading 1 Edit Mode (press Enter to enable)
2 : to heading 2 Tab : code completion or indent
3 : to heading 3 Shift-Tab : tooltip
4 : to heading 4 Ctrl-] : indent
5 : to heading 5 Ctrl-[ : dedent
6 : to heading 6 Ctrl-A : select all
K : select cell above Ctrl-Z : undo
Up : select cell above Ctrl-Shift-Z : redo
Down : select cell below Ctrl-Y : redo
J : select cell below Ctrl-Home : go to cell start
Shift-K : extend selected cells above Ctrl-Up : go to cell start
Shift-Up : extend selected cells above Ctrl-End : go to cell end
Shift-Down : extend selected cells below Ctrl-Down : go to cell end
Shift-J : extend selected cells below Ctrl-Left : go one word left
A : insert cell above Ctrl-Right : go one word right
B : insert cell below Ctrl-Backspace : delete word before
X : cut selected cells Ctrl-Delete : delete word after
C : copy selected cells Ctrl-M : command mode
Shift-V : paste cells above Ctrl-Shift-P : open the command palette
V : paste cells below Esc : command mode
Z : undo cell deletion Shift-Enter : run cell, select below
D , D : delete selected cells Ctrl-Enter : run selected cells
Shift-M : merge selected cells, or current cell with cell Alt-Enter : run cell, insert below
below if only one cell selected Ctrl-Shift-Minus : split cell
Ctrl-S : Save and Checkpoint Ctrl-S : Save and Checkpoint
S : Save and Checkpoint Down : move cursor down
L : toggle line numbers Up : move cursor up
Python Functions
Built-in Functions
abs() setattr() object() eval() bytearray() tuple() range() map()
delattr() any() sorted() int() filter() callable() vars() reversed()
hash() dir() bin() open() issubclass() format() classmethod() __import__()
memoryview() hex() enumerate() str() pow() len() getattr() complex()
set() next() input() breakpoint() super() property() locals() hasattr()
all() slice() oct() exec() bytes() type() repr() max()
dict() ascii() staticmethod( isinstance() float() chr() zip() round()
help() divmod() ) ord() iter() frozenset() compile()
min() id() bool() sum() print() list() globals()
Math module functions
ceil(x) Returns the smallest integer greater than or equal sqrt(x) Returns the square root of x
to x. acos(x) Returns the arc cosine of x
copysign(x, y) Returns x with the sign of y asin(x) Returns the arc sine of x
fabs(x) Returns the absolute value of x atan(x) Returns the arc tangent of x
factorial(x) - Returns the factorial of x atan2(y, x) Returns atan(y / x)
floor(x) Returns the largest integer less than or equal to x cos(x) Returns the cosine of x
fmod(x, y) - Returns the remainder when x is divided by y hypot(x, y) - Returns the Euclidean norm, sqrt(x*x + y*y)
frexp(x) Returns the mantissa and exponent of x as the sin(x) Returns the sine of x
pair (m, e) tan(x) Returns the tangent of x
fsum(iterable) Returns an accurate floating point sum of degrees(x) - Converts angle x from radians to degrees
values in the iterable radians(x) - Converts angle x from degrees to radians
isfinite(x) - Returns True if x is neither an infinity nor a NaN acosh(x) - Returns the inverse hyperbolic cosine of x
(Not a Number) asinh(x) Returns the inverse hyperbolic sine of x
isinf(x) Returns True if x is a positive or negative infinity atanh(x) Returns the inverse hyperbolic tangent of x
isnan(x) Returns True if x is a NaN cosh(x) Returns the hyperbolic cosine of x
ldexp(x, i) - Returns x * (2**i) sinh(x) Returns the hyperbolic cosine of x
modf(x) Returns the fractional and integer parts of x tanh(x) Returns the hyperbolic tangent of x
trunc(x) Returns the truncated integer value of x erf(x) Returns the error function at x
exp(x) Returns e**x erfc(x) Returns the complementary error function at x
expm1(x) - Returns e**x - 1 gamma(x) - Returns the Gamma function at x
log(x[, base]) Returns the logarithm of x to the base lgamma(x) - Returns the natural logarithm of the absolute
(defaults to e) value of the Gamma function at x
log1p(x) - Returns the natural logarithm of 1+x pi - Mathematical constant, the ratio of circumference of
log2(x) Returns the base-2 logarithm of x a circle to it's diameter (3.14159...)
log10(x) Returns the base-10 logarithm of x e - mathematical constant e (2.71828...)
pow(x, y) Returns x raised to the power y