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.11.tar.gz
(4.8 kB
view hashes)
Built Distribution
ei-0.0.11-py3-none-any.whl
(7.5 kB
view hashes)