aaren / notedown

Markdown <=> IPython Notebook
BSD 2-Clause "Simplified" License
855 stars 115 forks source link

Support the Jupyter (IPython) R kernel #24

Open macd opened 9 years ago

macd commented 9 years ago

Project Jupyter now supports a R kernel (https://github.com/IRkernel/IRkernel) It would be nice to support this in translating Rmd to ipynb by removing the %%R magics in the cells and then adding the R specific metadata and language_info such as

"metadata": { "kernelspec": { "display_name": "R", "language": "", "name": "ir" }, "language_info": { "codemirror_mode": "r", "file_extension": ".r", "mimetype": "text/x-r-source", "name": "R", "pygments_lexer": "r", "version": "3.1.3" }

aaren commented 9 years ago

Agreed, this would be good. I'd like to maintain compatibility with the %%R magic though.

Perhaps we could use the --rmagic flag to toggle the behavior, i.e. use the R kernel with

notedown input.Rmd --knit 

but use %%R with

notedown input.Rmd --knit --rmagic
macd commented 9 years ago

That sounds like a good plan. Thanks!

Don

On Sun, May 31, 2015 at 12:58 PM, aaren notifications@github.com wrote:

Agreed, this would be good. I'd like to maintain compatibility with the %%R magic though.

Perhaps we could use the --rmagic flag to toggle the behavior, i.e. use the R kernel with

notedown input.Rmd --knit

but use %%R with

notedown input.Rmd --knit --rmagic

— Reply to this email directly or view it on GitHub https://github.com/aaren/notedown/issues/24#issuecomment-107240313.

sje30 commented 8 years ago

On a similar point, will it support Julia code embedded in markdown?

aaren commented 8 years ago

@sje30 if I implement this it will be for the general case. If there is a Jupyter kernel written for the language then it should work.

aaren commented 8 years ago

Todo list for this:

sje30 commented 8 years ago

Great, let me know if you need help. There is a Julia kernel for Jupyter.

aaren commented 8 years ago

I'm probably not going to get around to this in the next couple of months unless I do some good procrastinating. Feel free to make a pull request in the meantime. The above list would be a good guideline.