【问题标题】:running python code within jupyter notebook with bash kernel使用 bash 内核在 jupyter notebook 中运行 python 代码
【发布时间】:2015-12-14 18:52:10
【问题描述】:

我想在运行 bash shell 的 jupyter notebook 中运行 python 代码。我可以通过使用单元魔术以其他方式(来自 python 笔记本的 bash 代码)来做,但是 %operant 在 bash shell 中不起作用。有办法吗?

【问题讨论】:

    标签: ipython-notebook jupyter jupyter-notebook


    【解决方案1】:

    单元魔术是为每个内核独立实现的 (http://jupyter.cs.brynmawr.edu/hub/dblank/public/Jupyter%20Notebooks.ipynb)。 Bash 内核(假设您指的是这个:https://github.com/takluyver/bash_kernel)的范围仍然非常有限,所以我不认为它会很快起作用。

    【讨论】:

      猜你喜欢
      • 2018-09-15
      • 2021-05-28
      • 2023-03-08
      • 2019-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多