Skip to content

Commit

Permalink
Mention jupytext --check pytest in the documentation
Browse files Browse the repository at this point in the history
Closes #286
  • Loading branch information
mwouts committed Nov 2, 2019
1 parent a60ec6e commit 2387f6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/using-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ You may also find useful to `--pipe` the text representation of a notebook into
jupytext --sync --pipe black notebook.ipynb # read most recent version of notebook, reformat with black, save
```

Execute `jupytext --help` to access the full documentation.
For programs that don't accept pipes, use `{}` as a placeholder for the name of a temporary file that will contain the text representation of the notebook. For instance, run `pytest` on your notebook with:
```bash
jupytext --check 'pytest {}' notebook.ipynb # export the notebook in format py:percent in a temp file, run pytest
```
(read more about running `pytest` on notebooks in our example [`Tests in a notebook.md`](https://github.com/mwouts/jupytext/blob/master/demo/Tests%20in%20a%20notebook.md)).

Execute `jupytext --help` to access the full documentation.

## Notebook and cell metadata filters

Expand Down

0 comments on commit 2387f6a

Please sign in to comment.