getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 449 forks source link

Matplotlib plot processed into black box #3662

Closed LucyNowacki closed 1 year ago

LucyNowacki commented 1 year ago

Ubuntu 22.04 Python 3.10.8 matplotlib 3.5.0 nbconvert 7.2.7 nbformat 5.7.1

The problem is that the w final jupyter notebook blog (after final conversion to deployable format) generates black boxes from matplotlib plots. It started happening after updating python's packages.

Kwpolska commented 1 year ago

We’ll need more details. Which Nikola version? Which packages did you upgrade recently? Can you provide a .ipynb file that causes this problem?

LucyNowacki commented 1 year ago

Hi again So my specification is: Ubuntu 22.04.1 LTS Python 3.10.8 Nikola 8.2.3

Please look at my blog and this link to .ipynb file under which you can see that plots are rendered as black boxes. On the bottom, I've attached all python packages after the update. If you look at my other post, the old matplotlib plots are generated correctly.

https://lucynowacki.github.io/blog/robust-pca/

Kwpolska commented 1 year ago

I was able to reproduce this issue by just running jupyter nbconvert --to html robust-pca.ipynb, which means it is not an issue with Nikola. Please report this bug to the jupyter/nbconvert repository.

This issue occurs for me with nbconvert==7.2.7, but does not occur with nbconvert==6.5.0.

LucyNowacki commented 1 year ago

I downgraded to nbconvert==6.5.0 however; unfortunately, the issue still occurs.

Kwpolska commented 1 year ago

Did you rebuild all files by using nikola build -a?

LucyNowacki commented 1 year ago

Hi I set u a new environment from conda, but installed all needed packages from Anaconda (they are usually older than from pip) and everything works perfectly :).