是否可以将一个单元格从一个 jupyter notebook 复制到另一个? [英] Is it possible to copy a cell from one jupyter notebook to another?

查看:108
本文介绍了是否可以将一个单元格从一个 jupyter notebook 复制到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将单元格从一个 jupyter 笔记本复制到另一个.这怎么可能?

I am trying to copy cells from one jupyter notebook to another. How this is possible?

推荐答案

此功能已在 Jupyter Notebook 5.0.使用 pip install notebook --upgrade 升级到最新版本.

This feature has been introduced in Jupyter Notebook 5.0. Use pip install notebook --upgrade to upgrade to the latest release.

旧的快捷键CVX 仅适用于在一个笔记本内复制和粘贴.为了跨选项卡执行此操作,您应该使用 Ctrl-CCtrl-V(Cmd-CCmd-V 在 Mac 上).

The old shortcuts C, V and X work only for copying and pasting inside one notebook. In order to do it across tabs, you should use Ctrl-C and Ctrl-V (Cmd-C and Cmd-V on Mac).

注意多个单元格:当前(jupyter 6.0.0)在 Mac+chrome 上使用 shift-click 选择单元格然后 cmd-C 不起作用,同时使用键盘与 shift-down-箭头可以!(感谢 drevikovo 指出这一点)

Note on multiple cells: currently (jupyter 6.0.0) on Mac+chrome using shift-click to select the cells then cmd-C does NOT work, while using the keyboard with shift-down-arrow does! (thanks drevicko for pointing this out)

这篇关于是否可以将一个单元格从一个 jupyter notebook 复制到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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