Tools to work with Jupyter notebooks
Project description
validate: validate notebooks
head: show head or tail of notebooks
dump: dump notebook info and source on terminal
stats: summarize notebooks with statistics
view: view notebook, including all embedded images, LaTeX, and HTML in a browser
cat: catenate multiple notebooks
clean: clean notebooks by removing specified elements
run: execute notebooks, with pre/post cleaning
split: split notebooks into MarkDown, code, and raw
punch: punch holes into notebooks and fill them (for creating exercises)
Available as library functions and as configurable command-line scripts.
Installation
pip install nbtoolbelt
Documentation
Documentation is available on Read the Docs.
On the command line, you can use the options -h or --help.
Usage
On the command line:
nbtb [-h] [options] tool [options] nb.ipynb ...
As library: see documentation
Testing
pip install nbtoolbelt[test]
nbtoolbelt comes with a set of automatic test cases for pytest.
Developing
Some useful commands, and where to run them:
In nbtoolbelt/docs/,
clean build directory: make clean
create html documentation tree: make html
create pdf documentation: make latexpdf
determine size of documentation: wc `find . -name '*.rst'`
In nbtoolbelt/test/,
run all test cases: pytest .
In nbtoolbelt/,
test package configuration: python setup.py check
create source distribution and wheel: python setup.py sdist bdist_wheel
In nbtoolbelt/src/,
determine size of code: wc `find . -name '*.py'`
Licencse
Copyright (c) 2017 - Eindhoven University of Technology, The Netherlands
This software is made available under the terms of the MIT License.
Resources
Python: Python 3
-
Includes a format validator based on JSON schemas, such as nbformat.v4.schema.json
./jq: a lightweight and flexible command-line JSON processor
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
File details
Details for the file nbtoolbelt-2017.11.dev1.tar.gz
.
File metadata
- Download URL: nbtoolbelt-2017.11.dev1.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276aadf899f6635a59beb05fb85b19b5e246da6369734a58ee95c647149506d3 |
|
MD5 | 50b9128a6bbd0545c16607fc019b16ea |
|
BLAKE2b-256 | 99dad92b8b3f0a84c39583a607a5f14af106761c4a8ce3c3a302755c19dcdd20 |
File details
Details for the file nbtoolbelt-2017.11.dev1-py3-none-any.whl
.
File metadata
- Download URL: nbtoolbelt-2017.11.dev1-py3-none-any.whl
- Upload date:
- Size: 50.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 016561024985d0518560f43d025d38bf11d33561634539a79ba21ed26640109e |
|
MD5 | 63a4e9408368030f54762826684d1738 |
|
BLAKE2b-256 | 7a9795d0f7b6d732f8ed7d7c60f7e3721d2faa7ae4f22a9fec6e01540d092b89 |