If the chart is not displayed or if you get the following error UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. Theįollowing command installs matplotlib: sudo apt install python3-matplotlibĬreate and run the following Python script: import matplotlib.pyplot as plt Python 3.6.9 Visual Studio Code 1.42.1 Installation and configuration of Python and Visual Studio Code has been perfomed by following this step by step guide. If you work with virtual environments, do not forget to activate your environmentīefore installing matplotlib, otherwise it will be installed system wide.
0 Comments
Leave a Reply. |