Automatically embed IPython into arbitrary stack frames in traceback.
Project description
ei
Automatically embed IPython into arbitrary stack frames in traceback.
Install
pip install ei
# Or from GitHub
pip 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()
main()
You can also unpatch:
ei.unpatch() # this will recover the exception hook
Context manager:
with ei.capture():
main()
# The exception hook is recovered
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.7.tar.gz
(4.1 kB
view hashes)
Built Distribution
ei-0.0.7-py3-none-any.whl
(7.0 kB
view hashes)