❗ capitalization doesn't matter for these shortcuts
b
to add new cell belowm
change cell to markdowny
change cell to codedd
delete cellctrl + B
toggle files tab (on the left)cmd + \
comment/uncomment multiple selected lines (Note : For windows usectrl+\
)
def rescue_code(function):
import inspect
get_ipython().set_next_input("".join(inspect.getsourcelines(function)[0]))
rescue_code(functionName)
%matplotlib inline
fig=plt.figure(figsize=(18, 16))
Additional parameters that could be adjusted
fig=plt.figure(figsize=(18, 16), dpi= 80, facecolor='w', edgecolor='k')
matplotlib.rcParams['figure.figsize'] = [width, height]
By default, jupyter notebook truncates the stdout. This is to make sure that everything is printed (use responsibly !)
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"