Skip to content

Commit

Permalink
Fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Jul 25, 2018
1 parent 81f97b9 commit adfeaba
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,21 @@ pip install nbrmd --upgrade
jupyter notebook
```

## Per notebook configuration
With the above configuration, every Jupyter notebook will have a companion `.Rmd` notebook.
And every `.Rmd` notebook will have a companion `.ipynb` notebook.

With the above configuration, every notebook will have a companion `.Rmd` notebook.
If you prefer the `.ipynb` notebook not to be created by Jupyter when a `.Rmd`
notebook is edited, set
```
c.ContentsManager.default_nbrmd_formats = ''
```
(as the default value is `ipynb`). Outputs for R markdown notebooks, however,
will not be saved any more.

## Per notebook configuration

If you prefer that the companion script be generated only for a few notebooks,
If you prefer that the companion R markdown notebook be generated only for
selected notebooks,
remove the `c.ContentsManager.default_nbrmd_formats` line from Jupyter's
configuration, and instead edit the notebook metadata as follows:
```
Expand Down

0 comments on commit adfeaba

Please sign in to comment.