Another workaround is we can use "%matplotlib inline" while import like below so that we no need to use plt.show() explicitly everytime.
import matplotlib.pyplot as plt
Useful when you use Jupiter Notebook.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.