Jupyter notebook
# imports for jupyter notebook
import matplotlib.pyplot as plt
%matplotlib inline # display plots in this notebook
# set display defaults
plt.rcParams['figure.figsize'] = (10, 10) # large images
plt.rcParams[
'image.interpolation'] = 'nearest' # don't interpolate: show square pixels
plt.rcParams[
'image.cmap'] = 'gray' # use grayscale output rather than a (potentially misleading) color heatmap