AnswerDotAI / AnswerDotAI/nbdev
matplotlib outputs text representation instead of figure
- Lingua principale
- Jupyter Notebook
- Stelle
- 5.3k
- Fork
- 514
- Merge medio
- 2g 30m
- PR unite (30g)
- 8
Descrizione
# 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo i notebook nbdev-matplotlib-test collegati con nbdev_docs usando un numero diverso di worker, quindi esamina l’entry point di nbdev_docs e il modo in cui vengono raccolti gli output dei notebook. Il lavoro è completato quando ogni figura matplotlib viene renderizzata come figura anziché come rappresentazione testuale, anche quando il numero di notebook che contengono figure supera il numero di worker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter, matplotlib, python
- Ambito
- documentation, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100