【问题标题】:How to make DataSpell display the runtime of a cell?如何让 DataSpell 显示一个单元格的运行时间?
【发布时间】:2022-08-18 11:55:01
【问题描述】:
  • 请提供足够的代码,以便其他人可以更好地理解或重现该问题。

标签: python jupyter-notebook jetbrains-ide dataspell


【解决方案1】:

根据VS Code documentation,运行活动的 Jupyter Notebook 单元涉及Python:在 Python 终端中运行选择/行命令,或转移+进入.

您的代码行 from kaggle_house_price_base import train_features, train_labelsmodule 导入语句 - 有关其他信息,请参阅 Best practices when importing in IPythonHow to correctly import a Python module in VS Code?

【讨论】:

  • 我只是想强调底部的2.6s
  • 我的意思是,你甚至读过这个问题吗?
【解决方案2】:

这个对我有用:

pip install ipython-autotime

加载后,任何在此之后运行的单元格都会为您提供单元格的执行时间:

%load_ext autotime

【讨论】:

    猜你喜欢
    • 2014-07-30
    • 2022-06-16
    • 1970-01-01
    • 2020-06-27
    • 2022-08-05
    • 2019-03-01
    • 1970-01-01
    • 2012-05-13
    • 1970-01-01
    相关资源
    最近更新 更多