Metadata-Version: 2.1
Name: reverse-tb
Version: 0.0.1
Summary: a reverse traceback magic for jupyer notebooks
Home-page: https://github.com/ababino/reverse_tb
Author: Andres Babino
Author-email: ababino@gmail.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastcore
Provides-Extra: dev
Requires-Dist: twine ; extra == 'dev'

reverse_tb
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Install

``` sh
pip install reverse_tb
```

## How to use

``` python
from reverse_tb.core import reverse_tb
```

``` python
def foo():
    return bar()

def bar():
    return baz()

def baz():
    try:
        qux()
    except KeyError as e:
        raise Exception
    return qux()

def qux():
    d = {}
    return d['key']
```

``` python
foo()
```

    Exception: 

``` python
foo()
```

    ---------------------------------------------------------------------------
    Exception: 
    Cell In[3], line 11, in baz()
          9     qux()
         10 except KeyError as e:
    ---> 11     raise Exception
         12 return qux()

    Cell In[3], line 5, in bar()
          4 def bar():
    ----> 5     return baz()

    Cell In[3], line 2, in foo()
          1 def foo():
    ----> 2     return bar()

    Cell In[5], line 1
    ----> 1 foo()

    Exception                                 Traceback (last call first)

    During handling of the above exception, another exception occurred:

    KeyError: 'key'
    Cell In[3], line 16, in qux()
         15 d = {}
    ---> 16 return d['key']
            d = {}

    Cell In[3], line 9, in baz()
          8 try:
    ----> 9     qux()
         10 except KeyError as e:

    KeyError                                  Traceback (last call first)
