question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always use .Rmd as main format, take output from .ipynb.

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
abaltercommented, Oct 17, 2018

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!

0reactions
stefanuddenbergcommented, Mar 15, 2019

Sure; I’ll open an issue for it later today with an example. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found