-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish notebooks in hosted documentation #17
Comments
I use https://github.com/jupyter/jupyter-sphinx/ in many of my projects. You write in RestructuredText as usual but use the |
#17 Add links to notebooks. Custom controller documentation
Can't seem to get the GH actions for building/hosting documentation working with sphinx docs. Something something pandoc.
|
Maybe install pandoc? |
Fixed! Good lord, what a tricky issue. Writing this down just to memorialize this process. So, I wanted to host the notebooks and outputs in the documentation. But, I didn't want to rewrite the notebooks to be embedded in the sphinx documentation (which, @moorepants, turned out to be the most sensible thing). Well, alright, there's plugins to convert them to So, we actually can use a thing called That was yesterday. Then, of course, this introduces a bunch of dependencies into the sphinx pipeline: you have to actually (?) run the notebooks when generating the documentation, or at least parse them. And then, you need to convert the markdown and output cells in the notebooks to
Then, if you tell the interpreter to go one level up in experiment1.ipynb, that'll work whether you're in The fix is to uh... don't try to do it like this. Turned out to be a github actions learning experience for me, and one of those things where you waste 4.5 hours to save 45 minutes. (?) or maybe just parse outputs? I'm still not sure. |
I'm aware that there is a way to automatically run and publish jupyter notebooks in Sphinx documentation. I think it's a plugin for Sphinx that makes this possible.
It would be a nice addition to the documentation to have the existing notebooks there, and further, would reduce friction when writing tutorial documentation, since the tutorial can be created and tested as a notebook, and then published in one step instead of copy-pasting code.
The text was updated successfully, but these errors were encountered: