Always use .Rmd as main format, take output from .ipynb.
See original GitHub issueI really like the idea of having a synchronized copy of .Rmd
and .ipynb
. That’s basically the jupyter-way of having a nb.html file and gives us the best of two worlds: a text-editable, version-controllable Rmd file and an easily-sharable, output-preserving ipynb file.
I would suggest to pull the output out of the corresponding .ipynb
file, even when opening .Rmd
. That solves the issue that one could accidentically overwrite changes made to the .Rmd
file in an external editor when opening the corresponding .ipynb
file because one would like to retrieve contents.
I suggest the following procedure:
- when opening either .ipynb or .Rmd, check if both .Rmd and .ipynb are available
- check cell-by-cell if the ‘code’ parts are identical
- if yes, retrieve output from ipynb
- if no, discard all outputs and load code from Rmd.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (13 by maintainers)
Top Results From Across the Web
How to convert a Python Jupyter notebook into an RMarkdown ...
ipynb file is the Jupyter notebook we will convert into RMarkdown later. Of course, you can use one of your own notebooks to...
Read more >Jupyter And R Markdown: Notebooks With R - DataCamp
Learn how to install, run and use R with Jupyter Notebook and RStudio's R Notebook, including tips and alternatives.
Read more >vladchimescu/RdocsJupyter: vignettes/Intro.Rmd - Rdrr.io
To convert documentation in R Markdown into Jupyter notebook format, use the CRAN package rmarkdown to render the .Rmd file into Markdown Github:....
Read more >Transforming your .Rmd to .ipynb file (R Markdown to Python ...
2. Prepare or create a . Rmd (R Markdown) file. You then woul need to prepare an R markdown file that you want...
Read more >Blog Workflow Cleanup - Jake Tae
Rmd . Although .ipynb and .Rmd files are functionally somewhat similar in that they both allow people to write both texts and execute...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is somewhat uncharted territory. The notebook formats are good for use in IDEs and the script format for batch execution. Moreover, notebook formats are good for development and debugging. There are a whole range of different development patterns to explore. I’m going to put together a more detailed description of what we have been considering as I think it might be useful for further development.
Overall, jupytext is amazing, and something I’ve been really waiting for to come along!
Sure; I’ll open an issue for it later today with an example. Thanks!