How to dynamically update a plot in a loop in Ipython notebook (within one cell)

后端 未结 6 1516
梦如初夏
梦如初夏 2020-11-28 02:19

Environment: Python 2.7, matplotlib 1.3, IPython notebook 1.1, linux, chrome. The code is in one single input cell, using --pylab=inline

I want to use I

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 02:41

    You can further improve this by adding wait=True to clear_output:

    display.clear_output(wait=True)
    display.display(pl.gcf())
    

提交回复
热议问题