问题
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.
来源:https://stackoverflow.com/questions/30490801/how-do-i-set-up-default-cell-magics-for-every-ipython-notebook-cell