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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file ipy-autotimebar-0.0.2.tar.gz.

File metadata

  • Download URL: ipy-autotimebar-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for ipy-autotimebar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 11598e09ae45b18ee30fbabda19b4a78d6ab356130bddae451a06d3e01d72a7e
MD5 7fff57a5b68015459b2da4298d50cb86
BLAKE2b-256 53391166f33a8d3827239695d736f0f3742af3bca5ebf762aa54916e72cc4a8a

See more details on using hashes here.

File details

Details for the file ipy_autotimebar-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ipy_autotimebar-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 68a7c5f116c63589bdc053cfae5293aad88503fa41b15d0e69634e45fa60d099
MD5 8028046d62bb31ff58563fd1329ff2a0
BLAKE2b-256 c08e910196437f5c63fc4fd36df0851794c389f8f9fde3de847339c29841a26f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page