ei
Automatically embed IPython into arbitrary stack frames in traceback.
Install
# PyPI
pip3 install ei
# GitHub
pip3 install git+https://github.com.djosix/ei.git
Usage
Basic usage:
def main():
a = 123
b = 0
return a / b
if __name__ == '__main__':
import ei
ei.patch() # overwrites sys.excepthook
main()
Unpatch to recover sys.excepthook:
ei.unpatch()
Context manager:
with ei.capture():
main()
# The exception hook is recovered here
Lazy patch:
import ei.patched
Release files for ei 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ei-0.0.14.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ei-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / ei-0.0.14.tar.gz
| Download URL | ei-0.0.14.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a5aa924bbb743def867de072126debfd73871a98f9a4f73e7d17e046b687c6d
|
|
BLAKE2b-256 checksum How to use checksums |
4c042e1c77a6a0ea73d13e8ed3e1d14bf19735acd8eeb5ba05dc5f30489fdb1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / ei-0.0.14-py3-none-any.whl
| Download URL | ei-0.0.14-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdd3fc7975f45c6d54fdbd4f961157d5b138873376197e2c42d37231477d5415
|
|
BLAKE2b-256 checksum How to use checksums |
8222fafec228e47c2564e1788b61d595fb3131100010c8a2e793ad445a7b0d8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|