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.1.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.1.tar.gz.
File metadata
- Download URL: test_nb-0.1.1.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f49a4d18defbd665a02811a86ab7852501c1e37c9034e78b305126ab3d91c3f2
|
|
| MD5 |
04c1e2ee52eea3c9518784aca5f7dc59
|
|
| BLAKE2b-256 |
f7cacadadab43ab03334da8ec3f033d0129c1e25907132eabeafd0cb211f0b28
|
File details
Details for the file test_nb-0.1.1-py3-none-any.whl.
File metadata
- Download URL: test_nb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5528717a229e8472638cb4d8ee6976620514e87e6cef0e10adbc258f3105714c
|
|
| MD5 |
0b82868933fe7f046e6eb7d305316995
|
|
| BLAKE2b-256 |
19134c4c5028b7b3dbd6f1990c539ca6b79e379039840006055d34b49df50f9c
|