Skip to content

Commit ff441e0

Browse files
committed
add a docstring
1 parent b5f7d86 commit ff441e0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

scripts/run_notebooks/runner.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
"""Script to run all notebooks in the docs/source/notebooks directory."""
1+
"""CLI to notebook or directory of notebooks.
2+
3+
Arguments
4+
---------
5+
--notebooks: Specific notebook or directory of notebooks to run.
6+
--mock: Run notebooks with mock code. Default is True. If --no-mock is provided,
7+
notebooks will run without mock code.
8+
9+
Examples
10+
--------
11+
Run all notebooks in a directory with mock code:
12+
13+
$ python scripts/run_notebooks/runner.py --notebooks notebooks/ --mock
14+
15+
Run a single notebook without mocked code:
16+
17+
$ python scripts/run_notebooks/runner.py --notebooks notebooks/notebook.ipynb --no-mock
18+
19+
"""
220

321
from argparse import ArgumentParser
422

0 commit comments

Comments
 (0)