jpy-flette is a lightweight (~150 lines) python static website generator which uses jupyter notebooks as input. It's fantastic for documenting scientific projects, documentation, or just to share your thoughts with the world.
Install jpy-flette with pip:
pip install jpy-flette
You could also download or clone the source code from the repository:
git clone "https://github.com/r4lv/jpy-flette"
cd "jpy-flette"
python setup.py install
Make sure you check the documentation, which is actually built using jpy-flette itself!
jpy-flette transforms a directory full of .ipynb
jupyter notebooks into a website with multiple pages. Let's assume the following directory structure:
~/my/directory
└── notebooks
├── 00.index.ipynb
└── 01.advanced-usage.ipynb
After calling
jpy-flette ~/my/directory/notebooks
you would obtain
~/my/directory
├── docs
│ ├── index.html
│ ├── advanced-usage.html
│ └── static
│ ├── style.css
│ └── script.js
└── notebooks
├── 00.index.ipynb
└── 01.advanced-usage.ipynb
~/my/directory/docs
is then ready to be published!