When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error? February 23, 2023 by Tarik You don’t need the line of fig.show(). Just remove it. Then there will be no warning message.