Jupyter shows plot without plt.show()

前端 未结 2 1841
孤城傲影
孤城傲影 2021-01-12 07:49

I am using the Jupyter notebook with Python 2.7. Importing matplotlib like this:

%matplotlib inline    
import matplotlib.pyplot as plt

But

2条回答
  •  一整个雨季
    2021-01-12 08:42

    The requirement of adding %matplotlin inline is no longer needed in the latest jupyter notebooks. It's a by default addition now.

    You can change settings in ipython_kernel_config.py for different behaviour

提交回复
热议问题