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
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
Release history Release notifications | RSS feed
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.1.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for ipy_autotimebar-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecda915c559b0111d6c0563bf3867dc5bcb46483549f08164127b8f50d719242 |
|
MD5 | d3e1bb73dced3f34f4239fe675af4ef9 |
|
BLAKE2b-256 | 8524a1d2150ed64522a9e22ddc5e57e2b3232dfec9b8c127ae45c6228a40798b |