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