when i use matplotlib in jupyter notebook,it always raise “ matplotlib is currently using a non-GUI backend” error?

后端 未结 10 1527
耶瑟儿~
耶瑟儿~ 2020-11-28 07:40
import matplotlib.pyplot as pl
%matplot inline
def learning_curves(X_train, y_train, X_test, y_test):
\"\"\" Calculates the performance of several models with varyin         


        
10条回答
  •  余生分开走
    2020-11-28 08:37

    You can still save the figure by fig.savefig()

    If you want to view it on the web page, you can try

    from IPython.display import display
    display(fig)
    

提交回复
热议问题