spatialaudio / nbsphinx

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

Include from relative path #503

Closed CsatiZoltan closed 4 years ago

CsatiZoltan commented 4 years ago

If the .ipynb file is not in the same directory as the .rst file in which I refer to it, how can I make it work?

Example:

my_rst.rst:

.. toctree::
   :maxdepth: 2

   notebooks

notebooks.rst:

Notebooks
=========

.. include:: ../../notebooks/applications/one_of_my_notebooks.ipynb

does not use nbsphinx to display the notebook:

Screenshot from 2020-10-16 17-43-46

CsatiZoltan commented 4 years ago

OK, this is not supported as written in the documentation. I tried nbsphinx-link, which works just fine. Any reason why not supporting it by default?

mgeier commented 4 years ago

Any reason why not supporting it by default?

Yes, see https://github.com/spatialaudio/nbsphinx/pull/33.