Skip to main content

Automatically embed IPython into arbitrary stack frames in traceback.

Project description

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ei-0.0.14-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for ei-0.0.14.tar.gz
Algorithm Hash digest
SHA256 0a5aa924bbb743def867de072126debfd73871a98f9a4f73e7d17e046b687c6d
MD5 359ef08ab0a2835cc015407b6e758c6c
BLAKE2b-256 4c042e1c77a6a0ea73d13e8ed3e1d14bf19735acd8eeb5ba05dc5f30489fdb1f

See more details on using hashes here.

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

Hashes for ei-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd3fc7975f45c6d54fdbd4f961157d5b138873376197e2c42d37231477d5415
MD5 305174371eb434abafa7378e5066bf60
BLAKE2b-256 8222fafec228e47c2564e1788b61d595fb3131100010c8a2e793ad445a7b0d8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page