What is Jupyterbook?#

We use JupyterBook for documentation and sharing computational notebooks. Here is a nice article for motivation.

📑 The documentation: https://jupyterbook.org/en/stable/intro.html

Quick start#

  • have your repo cloned and run this to generate a starting template:

jupyter-book create --cookiecutter YourClonedRepo/

OR Build from the template provided in this Repo!#

(1) Use and adapt the two template files (_toc.yml, _config.yml) to your main code base, and be sure to keep the docs structure, i.e.,

/docs
├── /images
│   └── logo.png         # add logo here
├── intro.md             # main welcome page

(2) write in markdown (or myst) your docs, as usual:

(3) to build your docs & hosting see here: https://jupyterbook.org/en/stable/publish/gh-pages.html

TL;DR in the main repo run:

jupyter-book build .

and then follow terminal prompt (check errors, etc)- viola!

Deployment:#

To then deploy the book live, see: https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions

In short, Go to Settings > Pages and set up anaction to deploy to a new branch (that you never merge) called gh-pages:

Screen Shot 2025-06-17 at 2 20 19 PM