Closed ma-sadeghi closed 3 years ago
Yes, but you'll have to provide your own button.
For every HTML page, the (potentially executed) notebook is available at the same address, just replace html
with ipynb
, e.g.:
https://nbsphinx.readthedocs.io/en/0.8.2/code-cells.html https://nbsphinx.readthedocs.io/en/0.8.2/code-cells.ipynb
You can use nbsphinx_prolog
and nbsphinx_epilog
to create arbitrary links and buttons and whatever you want: https://nbsphinx.readthedocs.io/en/0.8.2/prolog-and-epilog.html.
I personally like to link to the non-executed files in the Git repository (e.g. on Github), as shown on every notebook in the nbsphinx
documentation. Here's how this is done:
Those pages also have a link to the executed notebook on nbviewer
, for example https://nbviewer.jupyter.org/urls/nbsphinx.readthedocs.io/en/0.8.2/code-cells.ipynb.
But if you want, you can of course also create a direct link to the executed notebook.
Great, thanks!
@mgeier how do you make this work with nbsphinx-link?
@mHash1m I don't, and I have never tried. You should probably ask at https://github.com/vidartf/nbsphinx-link?
If you create an issue, please leave a link here.
If you don't get an answer over there, feel free to ping me again.
If you need additional nbsphinx
features, please open a separate issue.
This feature probably exists, but just in case, is there a way to add a download ipynb button for each notebook?