【发布时间】:2022-08-18 11:55:01
【问题描述】:
像 VS 代码 enter image description here
-
请提供足够的代码,以便其他人可以更好地理解或重现该问题。
标签: python jupyter-notebook jetbrains-ide dataspell
像 VS 代码 enter image description here
标签: python jupyter-notebook jetbrains-ide dataspell
根据VS Code documentation,运行活动的 Jupyter Notebook 单元涉及Python:在 Python 终端中运行选择/行命令,或转移+进入.
您的代码行 from kaggle_house_price_base import train_features, train_labels 是 module 导入语句 - 有关其他信息,请参阅 Best practices when importing in IPython 和 How to correctly import a Python module in VS Code?。
【讨论】:
这个对我有用:
pip install ipython-autotime
加载后,任何在此之后运行的单元格都会为您提供单元格的执行时间:
%load_ext autotime
【讨论】: