-
Python Environment: Ensure you have Python 3.x installed.
-
Install Required Packages:
pip install nbconvert
You can convert .ipynb
files to markdown format using the provided script. Below are two methods: converting all cookbook at once or converting a single notebook.
cd ./website
To convert all files inside the cookbook
directory, run following command:
make generate_cookbook_docs
To convert a single cookbook file, you can specify the filename during the make
command:
make generate_cookbook_docs file=example.ipynb
All the converted
.ipynb
files will store in thedocs/guides/cookbooks/
directory
-
If a file already exists, it will be skipped during generations. To override this, simply add
force=true
at the end of the command. -
The output markdown files will include an optional note with links to the original Jupyter notebook on GitHub.