Custom utilities to convert notebooks to python files and test them
Project description
test-nb
Custom utilities to convert notebooks to python and test them.
CLI Reference
Usage: nb [OPTIONS] COMMAND [ARGS]
Convert notebooks to python scripts and run them for testing purposes
Options:
--help Show this message and exit.
Commands:
convert Convert notebook to python files
test Convert notebook to python files and test them end-to-end by running them
Commands
convert
Usage: nb convert [OPTIONS]
Convert notebooks to python files
Options:
--file TEXT Include one or more notebook files to convert to python
--directory TEXT Directory from which to convert notebooks.
--recursive Search recursively for notebooks in the provided directory
--include-md Include markdown (as comments) in the script
--no-errors Silence errors when reading from notebooks and writing to
python files.
--exclude-env Exclude code that sets environment variables
(os.environ[*] = *)
--overwrite Overwrite existing files when converting to python.
--help Show this message and exit.
test
Usage: nb test [OPTIONS]
Convert notebook to python files and test them end-to-end by running them
Options:
--file TEXT Include one or more notebook files to convert to
python
--directory TEXT Directory from which to convert notebooks.
--recursive Search recursively for notebooks in the provided
directory
--include-md Include markdown (as comments) in the script
--no-errors Silence errors when reading from notebooks and
writing to python files.
--exclude-env Exclude code that sets environment variables
(os.environ[*] = *)
--overwrite Overwrite existing files when converting to
python.
--python-executable TEXT Path to the python executable. Defaults to
executable in the current environment if not
provided
--verbose Verbose logging for tests.
--timeout FLOAT Timeout for notebook execution
--help Show this message and exit.
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
test_nb-0.1.0.tar.gz
(30.0 kB
view details)
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 test_nb-0.1.0.tar.gz.
File metadata
- Download URL: test_nb-0.1.0.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b51f7c07fe67c9b3fdfe3be2988779c1c68ccd49e3f74b0a322261843754975
|
|
| MD5 |
aea3a1a40a9a7d07aba0cbb380b48043
|
|
| BLAKE2b-256 |
c5e2d00f2f81907f638154ac74f4de256b98161e4643e6aae2b06705bf781e57
|
File details
Details for the file test_nb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: test_nb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5074ea6ce11a710bb048ac03a1e7838b710b00733a94c5d92012fd0181e9bb20
|
|
| MD5 |
82446d385733bd8849f47d66ac537a94
|
|
| BLAKE2b-256 |
de440eacf2451eb5ef703ac9bdd7662e685e3931c0939b511febcb7b52f4be2a
|