How do I set up default cell magics for every ipython notebook cell?

家住魔仙堡 提交于 2019-12-19 10:28:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!