get_notebooks_from_args

get_notebooks_from_args(args: list[str], exclude: list[str] = ['*.tox/*', '*.ipynb_checkpoints*']) tuple[list[str], list[str]][source]

Extract the absolute paths to notebooks.

The paths are relative to the current directory or to the CLI passes files/folder and returned as list.

Parameters:
  • args (list[str]) – The left over arguments that were not parsed by option_manager

  • exclude (list[str]) – File-/Folderpatterns that should be excluded, by default [”.tox/”, “.ipynb_checkpoints”]

Returns:

List of found notebooks absolute paths.

Return type:

tuple[list[str], list[str]]