Skip to content

Commit c6e92a3

Browse files
committed
Update README to discuss kernel choice.
1 parent fce0250 commit c6e92a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ Specify `-p no:python` if you would like to execute notebooks only. Alternativel
7272

7373
py.test --nbval my_notebook.ipynb
7474

75+
By default, each `.ipynb` file will be executed using the kernel
76+
specified in its metadata. You can override this behavior by passing
77+
either `--nbval-kernel-name mykernel` to run all the notebooks using
78+
`mykernel`, or `--current-env` to use a kernel in the same environment
79+
in which pytest itself was launched.
80+
7581
If the output lines are going to be sanitized, an extra flag, `--sanitize-with`
7682
together with the path to a confguration file with regex expressions, must be passed,
7783
i.e.

0 commit comments

Comments
 (0)