AnswerDotAI / AnswerDotAI/nbdev

nbdev_docs doesn't provide location of error

Open
#1,417 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

Hi,
I noticed that nbdev_docs doesn't provide location where the error occured, if there is no heading in the ipynb file.

**With heading:**
```
Exception: Error in notebook: utils_files in cell 3 :
r = 1/0
import sys
```

**Without heading:**
```
Exception: Error in cell 2 :
r = 1/0
import sys
```

Is it possible somehow fix it and add file name into the Exception info?

Contributor guide

Open the contributing guide

Research direction

Start by tracing nbdev_docs handling of errors from ipynb notebooks, comparing the reported output for notebooks with and without headings. Confirm how the notebook name and cell number are currently selected. Done means the exception includes the notebook file name in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.