I keep forgetting that and I must google it every time I want to change the size of charts in Jupyter Notebook (which really is, every time).

So this is how you do it:

import matplotlib.pyplot as plt

plt.rcParams["figure.figsize"] = (20,10)

Hopefully, now I am going to remember or just open my own blog post instead of googling it ;)

Subscribe to the newsletter
Now Enrolling: A new cohort for my premium course on fixing AI hallucinations. Limited 'Founding Member' spots available. Learn more