AnswerDotAI / AnswerDotAI/nbdev
matplotlib_inline dependency missing in nbdev_test
- Lingua principale
- Jupyter Notebook
- Stelle
- 5.3k
- Fork
- 513
- Merge medio
- 2g 30m
- PR unite (30g)
- 8
Descrizione
# matplotlib_inline dependency missing
After migrating to nbdev2, running `nbdev_test` on my Jupyter notebooks with `matplotlib` plots produced the following error:
ModuleNotFoundError: No module named 'matplotlib_inline'
This error only occurs when running `nbdev`_test or `nbdev_prepare`. The notebooks render fine. After some searching online I found that there is a separate python package on pypi: `matplotlib-inline`. See: https://pypi.org/project/matplotlib-inline/
The documentation says: *Note that in current versions of JupyterLab and Jupyter Notebook, the explicit use of the %matplotlib inline directive is not needed anymore, though other third-party clients may still require it.*
After `pip install matplotlib-inline` the error no longer occurred.
Would it be possible to add this requirement to nbdev? It seems to me that this would prevent similar problems with other users.
Thanks,
Frank
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando i metadati delle dipendenze utilizzati da nbdev_test e nbdev_prepare, quindi riproduci il ModuleNotFoundError con un notebook contenente un grafico matplotlib. L’issue è completata quando l’installazione di nbdev fornisce matplotlib-inline ed entrambi i punti di ingresso vengono eseguiti senza questo errore di modulo mancante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter-notebook, matplotlib, python
- Ambito
- testing, tooling
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100