Skip to content

Commit

Permalink
Remove cell timeout (resolves #10)
Browse files Browse the repository at this point in the history
Set default timeout = -1
  • Loading branch information
LSYS committed May 1, 2024
1 parent 9a27069 commit 4c19576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runpynb/runpynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def run_notebooks(
notebooks: Sequence[str],
timeout: int = 3600,
timeout: int = -1,
ver: int = None,
assequence: bool = False,
output: bool = False,
Expand All @@ -27,7 +27,7 @@ def run_notebooks(
List of notebooks to be executed. ".ipynb" extension is implied and not required.
timeout (int)
Threshold in seconds before cell execution timeouts and throws a cell timeout error.
(Default = 3600 -> 1 hr)
(Default = -1 -> no limit)
ver (int)
Version of notebook to convert to and return.
(Default is None)
Expand Down
2 changes: 1 addition & 1 deletion runpynb/scripts/runpynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PARSER.add_argument(
"-t",
"--timeout",
type=int,
default=3600,
default=-1,
help="Seconds until a cell in the notebook timesout, which raises a Timeouterror exception (default is 3600 = 1 hr).",
)
PARSER.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion runpynb/scripts/runpynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"-t",
"--timeout",
type=int,
default=3600,
default=-1,
help="Seconds until a cell in the notebook timesout, which raises a Timeouterror exception (default is 3600 = 1 hr).",
)
PARSER.add_argument(
Expand Down

0 comments on commit 4c19576

Please sign in to comment.