spatialaudio / nbsphinx

:ledger: Sphinx source parser for Jupyter notebooks
https://nbsphinx.readthedocs.io/
MIT License
453 stars 130 forks source link

nbsphinx PDF don't render Ploty Plot #770

Closed gbullido closed 11 months ago

gbullido commented 11 months ago

When making "make latexpdf" the PDF is created well but the cells where there is a plotly plot is not displayed. Places "Data type cannot be displayed: application/vnd.plotly.v1+json"

How can I fix this?

mgeier commented 11 months ago

AFAIK, plotly doesn't provide an output in LaTeX/PDF/PNG, nor SVG format. All those would be supported in nbsphinx with the latexpdf builder. But plotly provides some HTML with some JavaScript, which is not supported.

How can I fix this?

I'm not sure, a few things come to mind:

gbullido commented 11 months ago

@mgeier Just convert my graphics to MatplotLib and everything is working fine now.

Thanks.