Skip to main content

Friendlier tracebacks, collapsing frames with library code,inline variable values, and adding context

Project description

iWut

Friendlier tracebacks, collapsing frames with library code, inline variable values, and adding context.

wut-vars-ctx-prettier

Installation

pip install iwut

Notebook

%load_ext iwut

Global Usage: You can turn on wut globally to catch and re-render all tracebacks.

%wut on

You can likewise turn off wut with %wut off.

Case-by-case Usage: Once you hit an error, you can use wut to retroactively re-parse the exception. For example, you may have the following

> 1/0
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
/tmp/ipykernel_165/2354412189.py in <module>
----> 1 1/0

ZeroDivisionError: division by zero

In the next cell, simply use the line magic

%wut

This will pretty print a friendlier traceback. You can alternatively, prepend the cell magic on a faulty cell, like this:

%%wut
1 / 0

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

iwut-0.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

iwut-0.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file iwut-0.0.4.tar.gz.

File metadata

  • Download URL: iwut-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for iwut-0.0.4.tar.gz
Algorithm Hash digest
SHA256 efa625f87ba1b6d6c83b1b372b028a90f0f747ef27aaba70c3850a4c0bf3a23d
MD5 fec0f6a12658b103dfbb5bfcb1078962
BLAKE2b-256 9f86aecb07588615e834d49bebf69f400d32ee0c86e780b49e4bf6315b89b63b

See more details on using hashes here.

File details

Details for the file iwut-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: iwut-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for iwut-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f251a95b12ea05f30e2c5168cf451acdc44692b745ed67096ca8e73871a56a8a
MD5 179bf86f01cc207b7791144742619207
BLAKE2b-256 fb32e8cc2821bb15c950c415d9a52b96a69cd60795b8f87d43b2832a1b2adb28

See more details on using hashes here.

Supported by

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