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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iwut-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 66144aa92fd32932d29aff8e2b84f042e6a0af7986fe17da20e0a5fca40a816e
MD5 e96d0de99b4a7c18d86ce1d70ab34375
BLAKE2b-256 4d6bc013db43fe115430c38ec347a5181d8dbdd46ffc0abfa18ab62d32bd376e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iwut-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56f2a9ed81e91e3f8e9abc5593f48638366034e1b7166d58c25d2412d4059903
MD5 c7d7d7322981961443b258eb3c689159
BLAKE2b-256 08443f042603ca71c42d2d0bffa559c84ca168a5ef0b15db47f9f816735a8e81

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