The Jupyter Book Guide
This is a guide for creating your own book usingJupyter Notebooks and Jekyll. Book content is written in markdown andJupyter Notebooks, and jupyter-book
converts these intoa book fit for hosting on the web.
Install the command-line interface
First off, make sure you have the CLI installed so that you can work with Jupyter Book.The Jupyter-Book CLI allows you to create, build, upgrade, and otherwise control yourJupyter Book. You can install it via pip with the following command:
- pip install jupyter-book
The book building process
Building a Jupyter Book broadly consists of three steps:
- Create your book template. Jupyter Book expects a particularcollection of files and folders that work with the Static Site GeneratorJekyll. The anatomy of a Jupyter Book section covers thegeneral structure of Jupyter Books, and the create your book templateguide shows how to create your own book structure.
- Convert each page of your book into HTML. We first create each page ofyour book into HTML. This converts your
.ipynb
,.md
, etc files into HTMLthat can be understood by a website. It also uses your book's metadata to inserttags and other layout elements into each page's HTML. See the building each page's HTMLsection for more information. - Build your book's HTML from these pages. Once we have HTML for each page, wecan stitch them together for a book. At the end of this step, you should havestandalone HTML that can be hosted online. See the build your book's htmlsection for more information.
- Host your book's HTML online. Once your book's HTML is built, you can hostit online as a public website. This guide covers a few ways to do this. To begin, check out the next section. You can follow this guide linearly, or use it asa reference later on.
当前内容版权归 Jupyter Book 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Jupyter Book .