Skip to main content

ei

Automatically embed IPython into arbitrary stack frames in traceback.

asciicast

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)

Source distribution for ei 0.0.14
File Size Uploaded
ei-0.0.14.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ei 0.0.14
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

3 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page