Automatically embed IPython into arbitrary stack frames in traceback.
Project description
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
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
ei-0.0.14.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ei-0.0.14-py3-none-any.whl
(7.6 kB
view details)
File details
Details for the file ei-0.0.14.tar.gz.
File metadata
- Download URL: ei-0.0.14.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a5aa924bbb743def867de072126debfd73871a98f9a4f73e7d17e046b687c6d
|
|
| MD5 |
359ef08ab0a2835cc015407b6e758c6c
|
|
| BLAKE2b-256 |
4c042e1c77a6a0ea73d13e8ed3e1d14bf19735acd8eeb5ba05dc5f30489fdb1f
|
File details
Details for the file ei-0.0.14-py3-none-any.whl.
File metadata
- Download URL: ei-0.0.14-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdd3fc7975f45c6d54fdbd4f961157d5b138873376197e2c42d37231477d5415
|
|
| MD5 |
305174371eb434abafa7378e5066bf60
|
|
| BLAKE2b-256 |
8222fafec228e47c2564e1788b61d595fb3131100010c8a2e793ad445a7b0d8e
|