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.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

iwut-0.0.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iwut-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 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.2.tar.gz
Algorithm Hash digest
SHA256 b380e8fcdd70401d59de0ac2b2ae6ed4a491d7e2d7844ca6ac77afc31abba065
MD5 86d8307cea64b22f77dc8df1b1d463f2
BLAKE2b-256 19e1429d35beab075a15937f167d8f60fcbd23b3eda2a75837e685d45eb71eaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iwut-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18d4ec4edff16d00f0fcb4314eac3dcb0f5e3990f6512c369bfa87fcb627a91d
MD5 7dd84d4cdedd106a446b7a0d41324a32
BLAKE2b-256 85c998c9e4ea599cc6343782d5094d472195eb1597c57f21e67b67a073124bfa

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