spatialaudio / nbsphinx

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

nbsphinx breaks the raw directive #800

Closed adosar closed 2 months ago

adosar commented 5 months ago

I am using Sphinx to build the documentation for my package, and inside an .rst file I have the following content:

.. raw:: html
    :file: images/plotly.html

which renders an interactive Plotly figure. Eveyrthing works fine until I add 'nbsphinx' in the extensions (in conf.py).

mgeier commented 5 months ago

Can you please provide a minimal reproducible example?

mgeier commented 5 months ago

As a quick stab in the dark, you can also try to set nbsphinx_requirejs_path to the empty string.

https://nbsphinx.readthedocs.io/en/0.9.4/configuration.html#nbsphinx_requirejs_path

mgeier commented 3 months ago

@adosar Any news on this?

adosar commented 3 months ago

@mgeier For a MWE, you can clone this repository. Just comment (uncomment) the extensions variable in conf.py.

mgeier commented 3 months ago

@adosar Did you try my suggestion from https://github.com/spatialaudio/nbsphinx/issues/800#issuecomment-2179383584?

adosar commented 3 months ago

@mgeier I will try it out asap and let you know!

adosar commented 3 months ago

@mgeier It works by setting nbsphinx_requirejs_path to the empty string as suggested!