在iPython Notebook中使用Ruby或Bash,而无需在每个单元格中运行magic命令

时间:2015-05-08 06:19:56

标签: python ruby bash ipython ipython-notebook

当我想在单元格中执行Ruby或Bash时,我只需运行如下命令:

%%ruby
%%bash

但是,这只会持续到细胞结束。是否有一个我可以在iPython中运行的函数,它将在我使用的每个单元格中自动运行此命令,除非我禁用它?

0 个答案:

没有答案