Giter VIP home page Giter VIP logo

jupyter-book-template's Introduction

Jupyter Book template

Building a Jupyter Book broadly consists of these steps:

  • Create your book’s content. You structure your book with a collection of folders, files, and configuration. Anatomy of a Jupyter Book.

  • Build your book. Using Jupyter Book’s command-line interface you can convert your pages into either an HTML or a PDF book. Build your book.

  • Publish your book online. Once your book is built, you can share it with others. Most common is to build HTML, and host it as a public website. Publish your book online.

Installation

Create a virtual environment:

$ python3.10 -m venv .env
$ source .env/bin/active

Install jupyter book

$ pip install -U jupyter-book

Create your book's content

$ jupyter-book create book-template

Build your book

It will create a set of static websites.

$ jupyter-book build book-template

To rebuild:

$ jupyter-book build --all book-template

Publish you book online

Create a github repository without a README.md In the same folder of our book-template, execute the following:

$ git init
$ git add README.md book-template
$ git commit -m "First jupyter book template"
$ git branch -M main
$ git remote add origin https://github.com/cguz/jupyter-book-template.git
$ git push -u origin main

Install ghp-impot:

$ pip install ghp-import

Create the branch gh-pages with the content of the _build/html/

$ ghp-import -n -p -f book-template/_build/html

The website should be visible in :

https://cguz.github.io/jupyter-book-template/intro.html

If not, Go to:

Options -> GitHub Pages to ensure that the gh-pages branch is configured

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.