4 ms·
Very interesting, thanks a lot for your input! But you're probably aware that you can also generate PDFs from Jupyter notebooks. So I guess the advantage of kn
by ccordoba12 10y ago
Very interesting, thanks a lot for your input!
But you're probably aware that you can also generate PDFs from Jupyter notebooks. So I guess the advantage of knitr over notebooks is the ability to easily version control markdown docs.
Are there other advantages you'd like to share?
- jbmorgado 10y agoI think the great advantage is not really that. (With a bit of trouble you could already output HTML/PDF from an iPython notebook and remove the output in order to make version control easier (although that's fully automatised with markdown/knitr in RStudio)). But the big selling point is that you can choose which parts of your notebook to include in the HTML/PDF output. Input, output, plots, you can write a document for a scientific paper, presentation or even a book and not have to show all the code, or all the output or all the plots like you must do with iPython. That's the really strong point with knitr.
- ccordoba12 10y agoOk, I understand things better now. Thanks a lot for taking the time to go through this :) There have been long discussions about hiding output or code from Jupyter notebooks throughout the years but (unfortunately) they haven't derived on a final decision from the Jupyter team. In any case, your feedback is a very strong motivation to start working on this in Spyder. Thanks a lot for it! We have several things planned already for the next six months, but we'll try to have an initial implementation of a knitr equivalent before the summer of next year :)
- jbmorgado 10y agoThese are really great news. Thank you. I would still suggest that you would look into knitr before, since it already supports other languages besides R (although I can't understand if so extensively as R) so perhaps it would be easier to just build from that.