Jupyter 笔记本:垂直分屏(即水平添加单元格)
Jupyter notebook: split screen vertically (i.e. add cell horizontally)
是否可以在另一个单元格的一侧添加一个单元格,垂直分割屏幕?
这在比较两个事物列表时似乎非常有用。
我没有看到开箱即用的支持这个选项,所以我猜它需要一些额外的 js?
目前(2016 年 4 月 12 日)这是不可能的,但是 Jupyter github 问题中有一张票提到 "soon" 我们将能够在相同的浏览器选项卡;这将允许您正在寻找的并排比较。
现在可以在 JupyterLab. See this 示例中实现:
...there is a menu item to create a new side-by-side view of that same notebook that will remain synchronized with the other view:
请注意,JupyterLab 最终将取代 Jupyter Notebook。请参阅 答案。
是的,这是可能的。按照以下步骤操作。
- 安装扩展程序
>>> pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions
>>> jupyter contrib nbextension install --user
>>> jupyter nbextensions_configurator enable --user
启用 Splitcell 扩展
打开 Jupyter 笔记本
- 转到 nbextensions 选项卡
- 搜索 splitcell 扩展并启用它
- 此后通过任何笔记本上的图标使用它。
并且不要忘记查看其他很棒的扩展。享受。
您可以 right-click 文件选项卡,select,“笔记本的新视图”。
此功能已 merged on GitHub 并将在 3.2 版本中提供。转到 View -> Render side by side
是否可以在另一个单元格的一侧添加一个单元格,垂直分割屏幕? 这在比较两个事物列表时似乎非常有用。
我没有看到开箱即用的支持这个选项,所以我猜它需要一些额外的 js?
目前(2016 年 4 月 12 日)这是不可能的,但是 Jupyter github 问题中有一张票提到 "soon" 我们将能够在相同的浏览器选项卡;这将允许您正在寻找的并排比较。
现在可以在 JupyterLab. See this 示例中实现:
...there is a menu item to create a new side-by-side view of that same notebook that will remain synchronized with the other view:
请注意,JupyterLab 最终将取代 Jupyter Notebook。请参阅
是的,这是可能的。按照以下步骤操作。
- 安装扩展程序
>>> pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions
>>> jupyter contrib nbextension install --user
>>> jupyter nbextensions_configurator enable --user
启用 Splitcell 扩展
打开 Jupyter 笔记本
- 转到 nbextensions 选项卡
- 搜索 splitcell 扩展并启用它
- 此后通过任何笔记本上的图标使用它。
并且不要忘记查看其他很棒的扩展。享受。
您可以 right-click 文件选项卡,select,“笔记本的新视图”。
此功能已 merged on GitHub 并将在 3.2 版本中提供。转到 View -> Render side by side