如何为每个ipython笔记本单元设置默认单元魔术? [英] How do I set up default cell magics for every ipython notebook cell?

查看:92
本文介绍了如何为每个ipython笔记本单元设置默认单元魔术?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个完全由R单元组成的iPython笔记本.在每个单元格的开头,我对R单元格的定义如下:

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?

推荐答案

IRKernel 是@cel所建议的用于ipython/jupyter的R内核.您可以使用很多内核.

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

这篇关于如何为每个ipython笔记本单元设置默认单元魔术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆