AnswerDotAI / AnswerDotAI/nbdev
matplotlib outputs text representation instead of figure
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 5.3k
- Forks
- 513
- Ø Merge
- 2 T. 30 Min.
- Gemergte PRs (30 T.)
- 8
Beschreibung
# Provide a minimally reproducible example
[nbdev-matplotlib-test](https://github.com/idahlke-blacksky/nbdev-matplotlib-test)
[Pages](https://idahlke-blacksky.github.io/nbdev-matplotlib-test)
I set up this experiment to reproduce the bug in a shareable environment. The notebooks all have the same plotting code. Note that some of the notebooks show a text representation instead of the rendered figure (). This happens for the last N notebooks anytime the number of notebooks with matplotlib figures exceeds the number of workers passed to nbdev_docs by N. I can locally run `nbdev_docs n_workers 1` and force all notebooks except the first to fail. Increasing the number of workers decreases the number of failed notebooks expectedly.
Locally I am setting up with the conda env file, but the problem repeats on github without it.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die verknüpften nbdev-matplotlib-test-Notebooks mit nbdev_docs und unterschiedlichen Worker-Anzahlen auszuführen, und untersuche anschließend den nbdev_docs-Einstiegspunkt sowie die Erfassung der Notebook-Ausgaben. Als erledigt gilt die Aufgabe, wenn jede matplotlib-Figur als Figur statt als Textdarstellung gerendert wird, auch wenn die Anzahl der Notebooks mit Figuren die Anzahl der Worker überschreitet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter, matplotlib, python
- Bereich
- documentation, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100