From adfeaba7980d867a91e356d9ab8cde95aee16eea Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Thu, 26 Jul 2018 01:56:52 +0200 Subject: [PATCH] Fix #16 --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2402a9bd2..d79f34d97 100644 --- a/README.md +++ b/README.md @@ -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: ```