% ipython Python 3.8.8 (default, Apr 13 2021, 12:59:45) Type 'copyright', 'credits' or 'license' for more information IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. Then paste import matplotlib matplotlib.use('macosx') import matplotlib.pyplot as plt plt.plot([0,1, 2, 3], [0, 4, 6, 8],'o-') plt.show() # To exit quit()