Hello everyone,
I'm working on a machine learning project where I use nbdev to process Jupyter notebooks. Locally, my matplotlib figures render correctly, but when the notebooks are processed and viewed on GitHub, some figures appear as text representations (e.g., <Figure size 1000x600 with 1 Axes>).
I'm running GitHub Actions for continuous integration, and I suspect the issue might be related to the configuration of my GitHub Actions environment. Specifically, I want to ensure that the matplotlib figures are rendered correctly in the processed notebooks.
Any advice or examples of working configurations would be greatly appreciated!
I'm working on a machine learning project where I use nbdev to process Jupyter notebooks. Locally, my matplotlib figures render correctly, but when the notebooks are processed and viewed on GitHub, some figures appear as text representations (e.g., <Figure size 1000x600 with 1 Axes>).
I'm running GitHub Actions for continuous integration, and I suspect the issue might be related to the configuration of my GitHub Actions environment. Specifically, I want to ensure that the matplotlib figures are rendered correctly in the processed notebooks.
My Environment Details:
- Local Environment:
- ipykernel version: 6.29.4
- matplotlib version: 3.7.5
- matplotlib-inline version: 0.1.6
- GitHub Actions Environment:
- Versions may differ slightly from local setup.
What I've Tried:
- Explicitly setting %matplotlib inline in the notebooks.
- Using plt.show() to ensure figures are explicitly rendered.
- Verifying the backend as module://matplotlib_inline.backend_inline.
Any advice or examples of working configurations would be greatly appreciated!