I am a Python beginner. When I was trying to save figure in Jupyter notebook using the code plt.savefig("figure.png"), it generated an error message of 
AttributeError: 'NoneType' object has no attribute '_send_event'
Does anyone know how to solve this problem?

 
    