Skip to main content

Extend autotime to use in jupyter notebooks time bar per cell.

Project description

ipy-autotimebar

Project is an extension based on autotime library extended by an add-on activated only in jupyter notebook. The notebook displays the current cell execution time, which is updated on the fly. (similar to VSC jupyter explorer)

Installation:

$ pip install ipy-autotimebar

Examples

jupyter notebook/Pycharm/dataspell

jupyter

Ipython

In [1]: %load_ext autotimebar
time: 676 µs (started: 2022-05-03 17:58:02 +00:00)

In [2]: import time
time: 744 µs (started: 2022-05-03 17:58:15 +00:00)

In [3]: time.sleep(5)
time: 5 s (started: 2022-05-03 17:58:21 +00:00)

In [4]: 1/0
Traceback (most recent call last):
File ".../python3.9/site-packages/IPython/core/interactiveshell.py", line 3397, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-6-9e1622b385b6>", line 1, in <cell line: 1>
1/0
ZeroDivisionError: division by zero
time: 1.46 ms (started: 2022-05-03 18:00:56 +00:00)

Want to turn it off?

In [4]: %unload_ext autotimebar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipy-autotimebar-0.0.2.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

ipy_autotimebar-0.0.2-py2.py3-none-any.whl (7.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page