Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_nb-0.1.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for test_nb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f49a4d18defbd665a02811a86ab7852501c1e37c9034e78b305126ab3d91c3f2
MD5 04c1e2ee52eea3c9518784aca5f7dc59
BLAKE2b-256 f7cacadadab43ab03334da8ec3f033d0129c1e25907132eabeafd0cb211f0b28

See more details on using hashes here.

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

Hashes for test_nb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5528717a229e8472638cb4d8ee6976620514e87e6cef0e10adbc258f3105714c
MD5 0b82868933fe7f046e6eb7d305316995
BLAKE2b-256 19134c4c5028b7b3dbd6f1990c539ca6b79e379039840006055d34b49df50f9c

See more details on using hashes here.

Supported by

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