Jupyter shows plot without plt.show()

前端 未结 2 1844
孤城傲影
孤城傲影 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:28

    You turn on the immediate display with %matplotlib inline.

    The line:

    []
    

    is no error message. It is the return value of the last command. Try adding a ; at the end of the last line to suppress this.

提交回复
热议问题