【问题标题】:How can I view how much time each cell took to run in a Jupyter notebook?如何查看每个单元在 Jupyter 笔记本中运行的时间?
【发布时间】:2017-11-04 22:27:14
【问题描述】:

在 Jupyter 笔记本中选择 run allrun all aboverun all below 后,如何查看每个单元格运行的时间?

我的问题与Simple way to measure cell execution time in ipython notebook 不同,因为我想要所有单元格的运行时间,而不仅仅是一个。即,如果笔记本包含 10 个单元格,我想要 10 个运行时间。

【问题讨论】:

标签: python jupyter-notebook


【解决方案1】:

安装并启用ExecuteTime nbextension:“显示每个单元格的执行时间和执行时间”。

安装和配置详情是here

【讨论】:

  • 最佳答案,这个扩展是必备的! :D
【解决方案2】:

我相信只有通过把魔术函数%%time

【讨论】:

  • @FranckDernoncourt 是的,在每个单元格的开头。
猜你喜欢
  • 2020-05-17
  • 2020-12-02
  • 1970-01-01
  • 1970-01-01
  • 2015-11-11
  • 2018-09-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多