AnswerDotAI / AnswerDotAI/nbdev
Need more debugging information in case if notebook parsing fails
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 5.3k
- Forks
- 513
- Ø Merge
- 2 T. 30 Min.
- Gemergte PRs (30 T.)
- 8
Beschreibung
When running `nbdev_trust` I get a long stack trace which ends with
```
File "/home/mib07150/miniconda3/envs/py38/lib/python3.8/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 211 column 4 (char 7193)
```
However, there is more than 30 notebooks in this folder, and there is no sign of which of these is the problematic one -- nor what to do to make it parse-able again
I think that there might be an incompatibility between `plotly` and the `json` parser used by `nbdev`
I will not submit the problematic notebook, because I don't even know which one is it, nor which section of it
desirable info:
-> Notebook name
-> Section or cell number
-> surrounding "user-readable text" so that the offending section can be found easily
Beitragsleitfaden
Rechercherichtung
Der Einstiegspunkt ist der Befehl `nbdev_trust`; beginne damit, seinen Fehlerpfad beim Parsen von Notebooks nachzuverfolgen und zu untersuchen, wie JSONDecodeError gemeldet wird. Als abgeschlossen gilt die Aufgabe, wenn ein Parsing-Fehler das Notebook, den Abschnitt oder die Zelle sowie nahegelegenen, für Benutzer lesbaren Text identifiziert, sodass der fehlerhafte Inhalt gefunden und korrigiert werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter-notebook, python
- Bereich
- cli, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100