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

Initial Setup

This package assumes you have created a github repository containing one or more Jupyter notebooks (*.ipynb) in a subdirectory named notebooks. The initial setup is performed with the command

python nbpages --setup

This creates a directory named templates if needed with configuration data found in the .git subdirectory. If not already present, Jinja templates README.md.jinja and notebook_header.jinja are created. These templates should be edited as required.

Normal Usage

Notebooks filenames are prefixed with nn.mm- wherenn refers to the chapter number or, if a letter, to an Appendix. mmrefers to the section number. Section00` 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 command will add or amend headers and navigation bars in all notebooks, and create a table of contents and a keyword index accessible from README.md and the navigation bars.

Utilities

To help achieve a consistent style over a collection of notebooks, use the command

python nbpages --lint

to locate some forms of notebook 'lint'. A current list of additional features can be found

python nbpages --help

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.dev5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

nbpages-0.0.1.dev5-py3.7.egg (16.8 kB view details)

Uploaded Egg

File details

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

File metadata

  • Download URL: nbpages-0.0.1.dev5.tar.gz
  • Upload date:
  • Size: 6.6 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.dev5.tar.gz
Algorithm Hash digest
SHA256 b86ac4a18125923107ff4f04d6094114d89ce4a797d9ef781a9deb7370f70b69
MD5 da8209e8c164cfb20114a08a1b6e7cd3
BLAKE2b-256 d72575ac38d8c2076011d199ba068eb5fcfa0b8f6dc1d982a2ae8df55dc26138

See more details on using hashes here.

File details

Details for the file nbpages-0.0.1.dev5-py3.7.egg.

File metadata

  • Download URL: nbpages-0.0.1.dev5-py3.7.egg
  • Upload date:
  • Size: 16.8 kB
  • Tags: Egg
  • 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.dev5-py3.7.egg
Algorithm Hash digest
SHA256 c3160a8c2f17e7c90f1a6568c10e43582be3a3c669669b95d4b4da426c3f0aec
MD5 5c3c558d773c35517c1421e47043194a
BLAKE2b-256 98e2437d074b5e4a5e4194a63386871555fe35779dffd0754164d223cabc4fd5

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