diff --git a/startup/99-utils.py b/startup/99-utils.py new file mode 100644 index 0000000..cc3b287 --- /dev/null +++ b/startup/99-utils.py @@ -0,0 +1,9 @@ +from PIL import Image +import matplotlib.pyplot as plt + + +def plot_image(filepath, **kwargs): + plt.ion() + img = np.array(Image.open(filepath)) + plt.imshow(img, **kwargs) +