Developer docs: mention how to setup new notebooks for syncing

This commit is contained in:
Jake VanderPlas 2021-03-22 15:44:47 -07:00
parent a1cf06677d
commit 0572f364e7

View File

@ -248,6 +248,18 @@ $ pre-commit run --all
See the pre-commit framework documentation for information on how to set your local git
environment to execute this automatically.
### Creating new notebooks
If you are adding a new notebook to the documentation and would like to use the `jupytext --sync`
command discussed here, you can set up your notebook for jupytext by using the following command:
```
$ jupytext --set-formats ipynb,md:myst path/to/the/notebook.ipynb
```
This works by adding a `"jupytext"` metadata field to the notebook file which specifies the
desired formats, and which the `jupytext --sync` command recognizes when invoked.
### Notebooks within the sphinx build
Some of the notebooks are built automatically as part of the Travis pre-submit checks and