简体   繁体   中英

How to make DataSpell display the runtime of a cell?

like VS Code enter image description here

Per the VS Code documentation , running an active Jupyter Notebook cell involves the Python: Run Selection/Line in Python Terminal command, or Shift + Enter .

Your line of code from kaggle_house_price_base import train_features, train_labels is a module import statement — see Best practices when importing in IPython and How to correctly import a Python module in VS Code? for additional informaiton.

It works for me:

pip install ipython-autotime

Once you have loaded it, any cell run after this,will give you the execution time of the cell:

%load_ext autotime

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM