【发布时间】:2015-12-14 18:52:10
【问题描述】:
我想在运行 bash shell 的 jupyter notebook 中运行 python 代码。我可以通过使用单元魔术以其他方式(来自 python 笔记本的 bash 代码)来做,但是 %operant 在 bash shell 中不起作用。有办法吗?
【问题讨论】:
标签: ipython-notebook jupyter jupyter-notebook
我想在运行 bash shell 的 jupyter notebook 中运行 python 代码。我可以通过使用单元魔术以其他方式(来自 python 笔记本的 bash 代码)来做,但是 %operant 在 bash shell 中不起作用。有办法吗?
【问题讨论】:
标签: ipython-notebook jupyter jupyter-notebook
单元魔术是为每个内核独立实现的 (http://jupyter.cs.brynmawr.edu/hub/dblank/public/Jupyter%20Notebooks.ipynb)。 Bash 内核(假设您指的是这个:https://github.com/takluyver/bash_kernel)的范围仍然非常有限,所以我不认为它会很快起作用。
【讨论】: