Skip to main content

Tools to maintain a respository of Jupyter notebooks

Project description

nbpages

nbpages provides a Python toolset for managing a github repository of Jupyter notebooks. The project was inspired by the tools included with the Python Data Science Handbook by Jake Vanderplas.

Installation

pip install nbpages

Usage

This package assumes you have already created a github repository containing one or more Jupyter notebooks in a subdirectory named notebooks. The notebook files end with a .ipynb suffix, and begin with a nn.mm- prefix. nn refers to the chapter number or, if a letter, to an Appendix. mm refers to section number. Section 00 includes the chapter title and any prefatory material.

To use, execute the command line

python nbpages

from the top level directory of the notebook repository. The initial use of this command will:

  1. Create a directory named templates with configuration data found in the .git subdirectory, and jinja templates for a README.md file and notebook headers. The templates may be edited and include any variable from the configuration file.
  2. Create README.md using the template README.md.jinja. The default template includes a formatted list of all notebooks in the respository.
  3. Add headers and navigation bars in all notebooks. The headers can be modified by the editing notebook_header.jinja template.
  4. Create a table of contents and a keyword index accessible from README.md and the navigation bars.

Table of Contents

Keyword Index

Chapter 1.0 Getting Started with nbcollection

Appendix A. Style Guide

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbpages-0.0.1.dev3.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file nbpages-0.0.1.dev3.tar.gz.

File metadata

  • Download URL: nbpages-0.0.1.dev3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for nbpages-0.0.1.dev3.tar.gz
Algorithm Hash digest
SHA256 bc9f2738d94b5d492ee7ca8c88b0f2d0ff0729ffbdfc0151bd5e5e4ca1ae928d
MD5 f55c5ca4f691be9168d87b16293b7e0d
BLAKE2b-256 c33e2ba8a38cc7c49f153c7a826aad6685626d3ada511dc7f4f9dd758ddd7221

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page