You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -25,15 +25,15 @@ pytest --nbmake **/*ipynb
25
25
26
26
## Allow errors and Configure Cell Timeouts
27
27
28
-
You can configure the notebook run timeout with a the following pytest flag:
28
+
You can configure the cell timeout with the following pytest flag:
29
29
30
30
```sh
31
-
pytest --nbmake --nbmake-timeout=3000 # allows each notebook 3000 seconds to finish
31
+
pytest --nbmake --nbmake-timeout=3000 # allows each cell 3000 seconds to finish
32
32
```
33
33
34
34
Each notebook can also be separately overidden to allow errors and fail if running exceeds a timeout.
35
35
36
-
This configuration must be placed in the notebook's top-level metadata (not cell-level metadata).
36
+
This configuration must be placed in the notebook's **top-level metadata** (not cell-level metadata).
37
37
38
38
Your notebook should look like this:
39
39
@@ -50,10 +50,17 @@ Your notebook should look like this:
50
50
}
51
51
```
52
52
53
+
## Override Notebook Kernels when Testing
54
+
55
+
Regardless of the kernel configured in the notebook JSON, you can force nbmake to use a specific kernel when testing:
56
+
57
+
```
58
+
pytest --nbmake --nbmake-kernel=mycustomkernel
59
+
```
53
60
54
61
## Add Missing Jupyter Kernel to Your CI Environment
55
62
56
-
If you are using a kernel name other than the default ‘python3’. You will see an error message when executing your notebooks in a fresh CI environment: `Error - No such kernel: 'mycustomkernel'`
63
+
If you are not using the flag above and are using a kernel name other than the default ‘python3’, you will see an error message when executing your notebooks in a fresh CI environment: `Error - No such kernel: 'mycustomkernel'`
0 commit comments