Include python files in book #426
-
My code consists of Jupyter notebooks and libraries in python. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Heya, indeed it is very possible, using https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html. and note also: https://myst-parser.readthedocs.io/en/latest/sphinx/use.html#use-sphinx-ext-autodoc-in-markdown-files |
Beta Was this translation helpful? Give feedback.
-
To answer this question for my future self (and maybe others):
to extend the sys.path so that module can be loaded
add to _config.yml:
and don't forget to update to version 0.11.1 jupyter-book --version: Jupyter Book : 0.11.1 Thanks Chris for the pointers |
Beta Was this translation helpful? Give feedback.
To answer this question for my future self (and maybe others):
In an *.md file add:
to extend the sys.path so that module can be loaded
create a file : dummy_extension.py in the folder of the module
add to _config.yml:
and don't forget to update to version 0.11.1
jupyter-book --version:
Jupyter Book : 0.11.1