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

后端 未结 10 1510
耶瑟儿~
耶瑟儿~ 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:24

    If you are using any profiling libraries like pandas_profiling, try commenting out them and execute the code. In my case I was using pandas_profiling to generate a report for a sample train data. commenting out import pandas_profiling helped me solve my issue.

提交回复
热议问题