3 ms·
Version Control! I normally run a single user git workflow and even that is a problem with Jupyter notebooks. What's the difference? Most plotting libraries o
by ced 10y ago
Version Control! I normally run a single user git workflow and even that is a problem with Jupyter notebooks.
What's the difference?
Most plotting libraries output MBs of HTML/Javascript, that would be a mess in git. How does R Notebooks handle this?
- baldfat 10y agogit just backs up the source files not the output of the scripts. You could have a images folder and have git upload the graphics but I personally don't do that.
- matt4077 10y agoI'd say generated data just shouldn't be saved by default. For long-running scripts, the actual data is usually written to files anyway.
- jmcphers 10y agoR notebooks keep all that HTML and Javascript in a separate file. You can choose to check that file into git if you want to version the output, but if all you care about is versioning the code, it's just a plain text R Markdown file.
- spot 10y agothat's interesting. what file is this and where is it kept? so if i want to send my notebook to someone and include my results, i have to send two files? or is there one file per output, per directory, or per user?
- baldfat 10y agoIf you want to save a plot you actually have to put the writing of the plot in the code. It would save as a image like png or svg. If your using the Notebook to share then they should just run the code on their side. If you want to make a report of it you just add one line of code and it will save a PDF/Word/Slide/etc for you in the present working directory. Sharing the Notebook for them to reproduce your results is just one text file of the RMarkdown file.
- ced 10y agoThat makes a lot of sense.