Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Feb 1, 2024
1 parent a468d6a commit 14b5f61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs_gh_pages/scripts/execute_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

_logger = logging.getLogger('ibllib')
IPYTHON_VERSION = 4
TIMEOUT_CELLS = 1200


class NotebookConverter(object):
Expand Down Expand Up @@ -58,9 +59,9 @@ def __init__(self, nb_path, output_path=None, overwrite=True, kernel_name=None):
self.executed_nb_path = self.output_path.joinpath(f'executed_{self.nb}')

if kernel_name is not None:
self.execute_kwargs = dict(timeout=900, kernel_name=kernel_name, allow_errors=False)
self.execute_kwargs = dict(timeout=TIMEOUT_CELLS, kernel_name=kernel_name, allow_errors=False)
else:
self.execute_kwargs = dict(timeout=900, kernel_name='python3', allow_errors=False)
self.execute_kwargs = dict(timeout=TIMEOUT_CELLS, kernel_name='python3', allow_errors=False)

@staticmethod
def py_to_ipynb(py_path):
Expand Down

0 comments on commit 14b5f61

Please sign in to comment.