Skip to content

Build JupyterBook locally

Mathew Biddle edited this page Jul 7, 2021 · 3 revisions

Resources:

Requirements:

Installation

Install jupyter-book:

conda install jupyter-book

Clone the notebooks_demo repository.

git clone https://github.com/ioos/notebooks_demos.git

Once you have cloned the repository, you have all the required notebooks cloned onto your system (in the jupyterbook/content folder).

Build the JupyterBook

Run the following command to build the JupyterBook.

jupyter-book build jupyterbook/

The command should be run relative to the jupyterbook/ directory.

If you are in the jupyterbook/ directory, you can build the book using

juyter-book build .

View the built JupyterBook

Your book's HTML pages are here:

jupyterbook\_build\html\

You can look at your book by opening this file in a browser:

jupyterbook\_build\html\index.html

Or, use the full link displayed in the terminal to view the website.

Clean up the book's generated files

To entirely remove the folders in the _build/ directory:

jupyter-book clean jupyterbook/ --all