Build a small website to host Jupyter notebooks as course chapters
Project description
nbcourse: publish your course based on Jupyter notebooks
Features
nbcourse helps you building a static website to publish your course content in the form of jupyter notebooks (one notebook for one chapter).
Main features:
- all the configuration is described by a single
nbcourse.ymlfile - it is based on doit in order to build efficently the html files
- chapters can be displayed in preview mode only so attendees can see the whole course program without being able to access content of the lessons to come
- notebooks can be:
- rendered as static html files,
- rendered as static reveal slideshows,
- packaged with all their material in a downloadable archive,
- compiled in a single pdf book using bookbook
- the theme can be easily customized (html files are templated using jinja)
See this python course (in French) as an example.
Installation
pip install nbcourse
Usage
Initiate an empty nbcourse project
nbcourse --init
Configure your website
- Put your notebooks file in the
notebook/directory - Edit the
nbcourse.ymlfile created by thenbcourse --initcommand.
Build your website
nbcourse
Resulting files are in the build/ directory.
Get help
nbcourse --help
Publish
Publishing with GitLab Pages is as simple as adding a .gitlab-ci.yml file such as:
pages:
image: boileaum/jupyter
script:
- pip install nbcourse
- nbcourse -n 5
- mv build public
artifacts:
paths:
- public
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nbcourse-0.3.6.tar.gz.
File metadata
- Download URL: nbcourse-0.3.6.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24e667c155912ca344dbf01590c40f9c7389a4400704c5b5e27ba6e521ea7e48
|
|
| MD5 |
6fbde490aa10a10a137524ea77c40e0f
|
|
| BLAKE2b-256 |
f36642afb4399a4560b8e401bfd6eb352f370429ba8cedb1faff0e7fb3c0fa25
|
File details
Details for the file nbcourse-0.3.6-py2.py3-none-any.whl.
File metadata
- Download URL: nbcourse-0.3.6-py2.py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff88027794b3e38887f7130fdc4a2357db06c40227dc0fdb648d0f87fce1cd24
|
|
| MD5 |
076640e82dc555a20f660ad222c72d52
|
|
| BLAKE2b-256 |
db25b0108b8132e70f0733407d1ea5d6466614ff25d64b58d78882db58ffe129
|