TIM*_*TIM 9 jupyter visual-studio-code jupyter-notebook
我最近在笔记本上使用 VS Code。然而,我真的很怀念普通 Jupyter 笔记本中提供的“重新启动并运行所有”快捷方式。我在设置中找到了重启选项。
我还找到了运行所有选项。
有没有一种方法可以将这两个触发器合并为一个?
有一个名为 vscode 的扩展multi-command可以让你做到这一点。转到您的扩展,找到该扩展并安装它。完成此操作后,转到您的按键绑定并打开keybindings.json,您可以通过单击此处(附图)来执行此操作。
然后继续添加以下内容:
{
"key": "oem_8", //put whatever key you want here
"command": "extension.multiCommand.execute",
"args": {
"sequence": [ //put whatever keybind actions you want in here
"jupyter.notebookeditor.restartkernel",
"notebook.execute"
]
},
"when": "editorTextFocus"
}
Run Code Online (Sandbox Code Playgroud)
我希望我有所帮助!
| 归档时间: |
|
| 查看次数: |
2571 次 |
| 最近记录: |