How do I set up default cell magics for every ipyt

2019-02-19 23:47发布

问题:

I have an iPython notebook that is completely made up of R cells. At the start of every cell, I have defined my R cell magic as follows:

%%R

However, is there a way to have just set that as a default for the entire notebook, so I don't have to type it into every cell?

回答1:

IRKernel is an R kernel for ipython/jupyter as suggested by @cel. There are lots of other kernels that you can use.