Modified from Phillip Cloud project Time everything in IPython
Project description
# klab-autotime
Time everything in IPython
## Installation:
use pip
## Examples
```python
Installed autotime.py. To use it, type:
%load_ext klab-autotime
In [2]: %load_ext klab-autotime
time: 1433692.87 s
In [3]: x = 1
time: 730.99 us
In [4]: x + 2
Out[4]: 3
time: 2.50 ms
In [5]: x + ''
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-bde712cacec5> in <module>()
----> 1 x + ''
TypeError: unsupported operand type(s) for +: 'int' and 'str'
time: 156.05 ms
```
## Want to turn it off?
```python
In [5]: %unload_ext klab-autotime
```
# klab-autotime
Time everything in IPython
## Installation:
use pip
## Examples
```python
Installed autotime.py. To use it, type:
%load_ext klab-autotime
In [2]: %load_ext klab-autotime
time: 1433692.87 s
In [3]: x = 1
time: 730.99 us
In [4]: x + 2
Out[4]: 3
time: 2.50 ms
In [5]: x + ''
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-bde712cacec5> in <module>()
----> 1 x + ''
TypeError: unsupported operand type(s) for +: 'int' and 'str'
time: 156.05 ms
```
## Want to turn it off?
```python
In [5]: %unload_ext klab-autotime
```
# klab-autotime
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
File details
Details for the file klab-autotime-0.0.5.14.tar.gz
.
File metadata
- Download URL: klab-autotime-0.0.5.14.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10751825b4d0ca2166e9760671aeddc262091ca616af0dc13febcf79a22af155 |
|
MD5 | 341375b2af801ddecb5f7ffa77b59632 |
|
BLAKE2b-256 | fcc20bcb92d64198d16d019ea7e877c7bc3afdb3a1fbd2afa963f34870242318 |